Next.js Discord

Discord Forum

SSG issue while building

Unanswered
Indian mackerel posted this in #help-forum
Open in Discord
Indian mackerelOP
Most of the routes in our frontend app are dynamic. During build time it's not known what routes will exist except for a few common pages like /login.
However, build errors occur during the 'Collecting page data ...' step. Redis URLs etc are not found. How can I prevent the build from seemingly rendering the components and pages?

I've seen 'export const dynamic = 'force-dynamic'; ' however this doesn't resolve the issues.

0 Replies