Next.js Discord

Discord Forum

Route interception broken in production mode, although working in development mode

Unanswered
Bull Arab posted this in #help-forum
Open in Discord
Bull ArabOP
https://github.com/IddanCF/repro-next-intercept

To Reproduce

1. Start the application in dev mode (npm run dev)
2. Open http://localhost:3000/, click the 'Interception link' to see the modal
3. Now run the project in production mode (npm run build npm start)
4. Click the 'interception link'. It navigates to the page instead of showing the modal

So in short, we see the behaviour working on dev, but we can't get the route interception working in production.

I expected the modal to keep working similar to how it does in dev mode, also in production mode.

0 Replies