Help: Vercel deployment failing with "document is not defined" error for Deepgram Voice Agent Demo #1029
Replies: 3 comments 1 reply
-
Thanks for asking your question. Please be sure to reply with as much detail as possible so the community can assist you efficiently. |
Beta Was this translation helpful? Give feedback.
-
Hey there! It looks like you haven't connected your GitHub account to your Deepgram account. You can do this at https://community.deepgram.com - being verified through this process will allow our team to help you in a much more streamlined fashion. |
Beta Was this translation helpful? Give feedback.
-
It looks like we're missing some important information to help debug your issue. Would you mind providing us with the following details in a reply?
|
Beta Was this translation helpful? Give feedback.
-
Hi! I'm trying to deploy the Deepgram Voice Agent Demo (https://github.com/deepgram-devs/deepgram-voice-agent-demo) on Vercel but running into build errors during deployment.
The build fails with:
ReferenceError: document is not defined
at createTag (/vercel/path0/.next/server/chunks/567.js:1:8756)
Details:
yarn dev
works fineI'm not a frontend developer, so I'd appreciate help understanding what might be causing this error. From what I've read, it seems related to trying to access the browser's
document
object during server-side rendering - is there a configuration I need to adjust for Vercel deployment?Full build log attached below for reference.
vercel_build_log.txt
Beta Was this translation helpful? Give feedback.
All reactions