-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
@mfts When attempting to build Papermark on Vercel (Free plan), the build fails for the /api/faqs route. The error states:
18:30:40.096 Error fetching visitor FAQs: B [Error]: Dynamic server usage: Route /api/faqs couldn't be rendered statically because it used `nextUrl.searchParams`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
18:30:40.097 at V (/vercel/path0/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:21778)
18:30:40.098 at Object.get (/vercel/path0/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:29137)
18:30:40.098 at m (/vercel/path0/.next/server/app/(ee)/api/faqs/route.js:1:1161)
18:30:40.098 at /vercel/path0/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:38417
18:30:40.098 at /vercel/path0/node_modules/next/dist/server/lib/trace/tracer.js:140:36
18:30:40.098 at NoopContextManager.with (/vercel/path0/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)
18:30:40.099 at ContextAPI.with (/vercel/path0/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)
18:30:40.099 at NoopTracer.startActiveSpan (/vercel/path0/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js:65:31)
18:30:40.099 at ProxyTracer.startActiveSpan (/vercel/path0/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js:36:24)
18:30:40.099 at /vercel/path0/node_modules/next/dist/server/lib/trace/tracer.js:122:103 {
18:30:40.099 description: "Route /api/faqs couldn't be rendered statically because it used `nextUrl.searchParams`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error",
18:30:40.099 digest: 'DYNAMIC_SERVER_USAGE'
18:30:40.100 }
18:30:41.636 Slack OAuth authorization error: n [Error]: Dynamic server usage: Route /api/integrations/slack/oauth/authorize couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error
18:30:41.637 at l (/vercel/path0/.next/server/chunks/8948.js:1:58124)
18:30:41.637 at u (/vercel/path0/.next/server/chunks/9479.js:377:11285)
18:30:41.637 at s (/vercel/path0/.next/server/chunks/27.js:29:20512)
18:30:41.637 at x (/vercel/path0/.next/server/app/api/integrations/slack/oauth/authorize/route.js:1:2859)
18:30:41.638 at /vercel/path0/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:6:38417
18:30:41.638 at /vercel/path0/node_modules/next/dist/server/lib/trace/tracer.js:140:36
18:30:41.638 at NoopContextManager.with (/vercel/path0/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js:25:19)
18:30:41.638 at ContextAPI.with (/vercel/path0/node_modules/@opentelemetry/api/build/src/api/context.js:60:46)
18:30:41.638 at NoopTracer.startActiveSpan (/vercel/path0/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js:65:31)
18:30:41.639 at ProxyTracer.startActiveSpan (/vercel/path0/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js:36:24) {
18:30:41.639 description: "Route /api/integrations/slack/oauth/authorize couldn't be rendered statically because it used `headers`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error",
18:30:41.639 digest: 'DYNAMIC_SERVER_USAGE'
18:30:41.639 }
``Metadata
Metadata
Assignees
Labels
No labels