Replies: 4 comments
-
facing same issue, |
Beta Was this translation helpful? Give feedback.
-
Can you please try to take a look at this example: https://github.com/vercel/next.js/tree/canary/examples/with-zones ? |
Beta Was this translation helpful? Give feedback.
-
Has there been any movement on this? |
Beta Was this translation helpful? Give feedback.
-
yes agree, impossible to rewrite with 2 nextjs app for now. We get this :
Basically the app try to fetch ressources to the current domain instead of rewrite domain. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
is possible rewrite from one Next app to second next app ?
I have 2 apps, dashboard.domain.com/p/:slug (SSR) and domain.com .
I created rewrite rule in domain.com app.
module.exports = { async rewrites() { return [ { source: "/:slug", destination: process.env.NEXT_DASHBOARD_URL + "p/:slug", }, ]; }, future: { webpack5: true, }, };
rewrite its work, if is opened domain.com/something i can see page from dashboard.domain
but this page is not interactive because i get 404 errors for some chunk files.
I think is beacuse next is trying download chunks from domain.com/_next/static but i need files from dashboard.domain.com/_next/static .
Is there some workaround ?
Beta Was this translation helpful? Give feedback.
All reactions