Next.js Discord

Discord Forum

Some of my production routes don't work

Unanswered
Scottish Fold posted this in #help-forum
Open in Discord
Scottish FoldOP
I'm using Next.js (latest version) in a pnpm Turborepo, my app router structure is below

In (turbopack) development everything runs normally - however, when I build and start the production server, only the root route (app/page.tsx) works. All of the routes in (dashboard) return a 404 page.

The bizzare thing is that everything works normally in development, just not with production. Using parallel routes to render sidebars for different sections of my app and to add breadcrumbs to all the routes.

0 Replies