Next.js Discord

Discord Forum

This Dynamic server usage is driving me crazy!!!

Unanswered
Whooping Crane posted this in #help-forum
Open in Discord
Avatar
Whooping CraneOP
stripe error n [Error]: Dynamic server usage: Page couldn't be rendered statically because it used headers. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
at i (/vercel/path0/.next/server/chunks/202.js:1:3730)
at d (/vercel/path0/.next/server/chunks/202.js:1:1105)
at rA (/vercel/path0/.next/server/chunks/502.js:12:47737)
at rk (/vercel/path0/.next/server/chunks/502.js:14:95)
at m (/vercel/path0/.next/server/app/api/stripe/route.js:1:1889)
at /vercel/path0/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:41966
at /vercel/path0/node_modules/next/dist/server/lib/trace/tracer.js:133:36
at NoopContextManager.with (/vercel/path0/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:7062)
at ContextAPI.with (/vercel/path0/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:518)
at NoopTracer.startActiveSpan (/vercel/path0/node_modules/next/dist/compiled/@opentelemetry/api/index.js:1:18093) {
digest: 'DYNAMIC_SERVER_USAGE'
Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. : https://vercel.link/serverless-function-size

1 Reply

Avatar
DirtyCajunRice | AppDir
what language is it