Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 error when navigating with <Link> and v3_lazyRouteDiscovery on Vercel when using different runtimes per route #10492

Open
styxlab opened this issue Feb 24, 2025 · 3 comments

Comments

@styxlab
Copy link

styxlab commented Feb 24, 2025

Reproduction

  1. Deploy the following git repo to Vercel:
    https://github.com/styxlab/lazy-route-discovery-link-404-on-vercel

  2. Observe 404 error when clicking on "Navigate to About page and observe 404 error!" from index page.

Notes:

  • Problem exists when switching from edge to node and vice versa
  • v3_lazyRouteDiscovery must be enabled (bug vanishes when disabled)
  • No problem when hitting the route directly.

System Info

remix 2.15.3, deployed to Vercel, node 22

Used Package Manager

npm

Expected Behavior

No 404 error when using

Actual Behavior

404 error when using and v3_lazyRouteDiscovery

@styxlab
Copy link
Author

styxlab commented Feb 24, 2025

Similar to #10263 but different in that the runtimes play a role.

@styxlab
Copy link
Author

styxlab commented Feb 25, 2025

Note: unlike #10494 and #10497 this error vanishes when v3_lazyRouteDiscovery: false only, i.e. singleFetch can be turned on.

@nicksrandall
Copy link
Contributor

I've run into a similar issue and I added a reproduction here: remix-run/react-router#13117

Do you think your issue is related?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants