Hi,
I have updated my project to nextjs 15 and my route inteceptor stopped working.
It still works with pnpm dev --turbo but it doesn't work after I build the project. I basically followed this guide https://nextjs.org/docs/app/building-your-application/routing/intercepting-routes to show the route as a modal/dialog when I click a button, but still open it as a fullpage when i navigate to the URL. So the form renders properly when i navigate to the route, but it shows this error screen when i click on the button, and there is nothing in the logs.
#Route interceptor not working with Next15
3 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
Not sure why it was working on Nextjs 14, but to fix it on Nextjs 15 i had to add export const dynamic = "force-dynamic"; ot top of my @modal/(.)create/page.tsx file