How to build static website with payloadcms? #10519
Unanswered
ziarmandhost
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I recently ran into the same issue (#9855) and couldn't find a fix. My current workaround, until a better one is provided, is to run two Next.js applications. One with Payload, and another vanilla Next.js application configured with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using app router with this structure:
next.config.mjs:
/(website)/[slug]/page.tsx:
Error:
Collecting page data ..Error: export const dynamic = "force-static"/export const revalidate not configured on route "/api/[...slug]" with "output: export".
Beta Was this translation helpful? Give feedback.
All reactions