Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/api/oauth/userinfo is trying to access request.headers, which prevents it from being rendered statically. #1181

Open
kodaneflash opened this issue Aug 12, 2024 · 3 comments

Comments

@kodaneflash
Copy link

Received this error on deployment - web:build: API error occurred Dynamic server usage: Route /api/oauth/userinfo couldn't be rendered statically because it accessed request.headers. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
web:build: Generating static pages (60/80)
at nnr (/var/task/sandbox.js:392:17058)
at /var/task/sandbox.js:392:15715
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /var/task/sandbox.js:392:14472 {
hideStackTrace: true,
code: 'NOW_SANDBOX_WORKER_MAX_MIDDLEWARE_SIZE',
link: 'https://vercel.link/edge-function-size',
action: 'Learn More'

@dor123official
Copy link

me too have same problem

@steven-tey
Copy link
Collaborator

Does this block the build?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants