You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Route interception as described in the Next.js docs here doesn't seem to work properly with next-on-pages. Parallel routesdo work, it's just route interception (directories with (.), (..), (...) prefixes) that don't work.
next dev
Route /
Route /hello after clicking the button (which is a Link to /hello). Note that interception happens as expected here, the modal is shown instead of rendering the actual /hello route.
Route /hello when loading the URL directly. This is the case with no interception, the actual route is rendered.
wrangler
Route /
Route /hello after clicking the button (which is a Link to /hello). The /hello route is loaded, interception does not work as expected here.
Route /hello when loading the URL directly. This is the case with no interception.
When run with wrangler, intercepted routes as defined in the app directory are completely ignored. The actual route is rendered every time.
Pages Deployment Method
None
Pages Deployment ID
No response
Additional Information
No response
Would you like to help?
Would you like to help fixing this bug?
The text was updated successfully, but these errors were encountered:
Thank you for opening this issue and providing a reproduction 🙂
I believe I have identified the cause and have opened a PR that should fix this issue. I would welcome you to try out the prerelease available in #312 (comment).
next-on-pages environment related information
System:
Platform: linux
Arch: x64
Version: #1 SMP Fri Jan 27 02:56:13 UTC 2023
CPU: (12) x64 12th Gen Intel(R) Core(TM) i7-1255U
Memory: 8 GB
Shell: /bin/bash
Binaries:
Node: 18.15.0
Yarn: 1.22.19
npm: 9.5.0
pnpm: 8.3.1
Package Manager Used: npm
Relevant Packages:
@cloudflare/next-on-pages: 1.0.2
vercel: [object Promise]
next: [object Promise]
Description
Route interception as described in the Next.js docs here doesn't seem to work properly with
next-on-pages
. Parallel routes do work, it's just route interception (directories with(.), (..), (...)
prefixes) that don't work.Reproduction
Here is a minimal repro of the issue: https://github.com/bharatari/route-interception.
next dev
Route
/
Route
/hello
after clicking the button (which is a Link to /hello). Note that interception happens as expected here, the modal is shown instead of rendering the actual/hello
route.Route
/hello
when loading the URL directly. This is the case with no interception, the actual route is rendered.wrangler
Route
/
Route
/hello
after clicking the button (which is a Link to /hello). The/hello
route is loaded, interception does not work as expected here.Route
/hello
when loading the URL directly. This is the case with no interception.When run with
wrangler
, intercepted routes as defined in theapp
directory are completely ignored. The actual route is rendered every time.Pages Deployment Method
None
Pages Deployment ID
No response
Additional Information
No response
Would you like to help?
The text was updated successfully, but these errors were encountered: