Open cryptickoan opened 1 year ago
I believe the following is related
they're both about intercepting routes but are not related.
@cryptickoan your github repo link is 404ing now.
I also notice that if you set request.headers
, modal doesn't interception on next dev
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App Router
Link to the code that reproduces this issue or a replay of the bug
vercel
https://github.com/cryptickoan/nextgram/tree/middleware
To Reproduce
Code can be found in the middleware branch of the nextgram fork i provided.
Describe the Bug
When running locally middleware rewrites break intercepting routes
Expected Behavior
When running locally middleware rewrites should work fine. Its a bit confusing I actually realized it was a development environment problem till I deployed this to Vercel to create an issue. It works fine in Vercel.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
locally