Open woffpost opened 1 week ago
Next.js 14.2.15 Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.0.0: Tue Sep 24 23:39:07 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T6000 Available memory (MB): 16384 Available CPU cores: 8 Binaries: Node: 22.7.0 npm: 10.8.2 Yarn: 1.22.19 pnpm: N/A Relevant Packages: next: 14.2.15 // Latest available version is detected (14.2.15). eslint-config-next: 14.2.13 react: 18.3.1 react-dom: 18.3.1 typescript: 5.6.3 Next.js Config:
https://github.com/vercel/nextgram
No response
Intercepting route does not work because the root goes through a rewrite
The intercepting route should work as specified in the documentation but through a rewrite.
// next.config.js async rewrites() { return [ { source: "/:locale/:vacancy/:id", destination: "/:locale/vacancy/:id", } ] }
app -- [locale] -- @modal -- (.)vacancy -- [id] -- page.tsx -- vacancy -- [id] -- page.tsx
@woffpost Can you clarify how exactly this is not working?
@samcx The route is not being intercepted; instead of processing the @modal/vacancy component, the regular vacancy component is processed.
Verify canary release
Provide environment information
Which example does this report relate to?
https://github.com/vercel/nextgram
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
Intercepting route does not work because the root goes through a rewrite
Expected Behavior
The intercepting route should work as specified in the documentation but through a rewrite.
To Reproduce