Skip to content

Multizones (with async rewrites()) not working as expected #58773

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

Closed
1 task done
ezeamin opened this issue Nov 22, 2023 · 2 comments
Closed
1 task done

Multizones (with async rewrites()) not working as expected #58773

ezeamin opened this issue Nov 22, 2023 · 2 comments
Labels
bug Issue was opened via the bug report template. Linking and Navigating Related to Next.js linking (e.g., <Link>) and navigation. stale The issue has not seen recent activity.

Comments

@ezeamin
Copy link

ezeamin commented Nov 22, 2023

Link to the code that reproduces this issue

https://github.com/ezeamin/next-multizones-test

To Reproduce

  1. Install dependencies on global scope and inside each app folder with pnpm or npm
  2. Run pnpm dev on the root folder
  3. Go to http://localhost:3000
  4. Click on "To App 3001" link
  5. This will compile the app on port 3001 (see console log), but won't render it until the page gets refreshed
  6. The same happens when travelling back to home

Current vs. Expected behavior

Current:
The app recognizes the rewrite rule and redirects the route to the correct destination, but won't update the content of the page until it's refreshed. The same happens when travelling back to home.

Expected:
To show the content of the other app when changing the path.

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
Binaries:
  Node: 21.2.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.0.4-canary.10
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: N/A
Next.js Config:
  output: N/A

pnpm is 8.10.5

Which area(s) are affected? (Select all that apply)

App Router, Routing (next/router, next/navigation, next/link)

Additional context

This is not a new issue. From version 13 onwards it's been happening. I have not used NextJs before, so I can't tell if this is something recent or not.

This has been tested locally only, no deployed version. Running on Windows 11 and Chrome, latest version. Firefox behaves the same.

This has been tested with and without the --turbo flag. I've tried removing node_modules and .next folders from both apps, but no change.

@ezeamin ezeamin added the bug Issue was opened via the bug report template. label Nov 22, 2023
@github-actions github-actions bot added the Linking and Navigating Related to Next.js linking (e.g., <Link>) and navigation. label Nov 22, 2023
@nextjs-bot
Copy link
Collaborator

This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.

@nextjs-bot nextjs-bot added the stale The issue has not seen recent activity. label May 20, 2025
@nextjs-bot
Copy link
Collaborator

This issue has been automatically closed due to two years of inactivity. If you’re still experiencing a similar problem or have additional details to share, please open a new issue following our current issue template. Your updated report helps us investigate and address concerns more efficiently. Thank you for your understanding!

@nextjs-bot nextjs-bot closed this as not planned Won't fix, can't repro, duplicate, stale May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. Linking and Navigating Related to Next.js linking (e.g., <Link>) and navigation. stale The issue has not seen recent activity.
Projects
None yet
Development

No branches or pull requests

2 participants