Multiple nextJs apps on same TLD - change _next path #37615
-
Hello, I have 2 nextjs websites running on the same domain.
I have added an Unfortunately both apps try to access the Is there any workaround for this? I have read this #5602 but it has been closed without a solution for my case. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think I just solved it. This article pointed me to the right direction: https://arihantverma.com/posts/2021/07/18/workaround-nextjs-data-urls-same-domain-multiple-apps/ So what I am doing now is using custom build IDs and prefixing them with
|
Beta Was this translation helpful? Give feedback.
I think I just solved it. This article pointed me to the right direction: https://arihantverma.com/posts/2021/07/18/workaround-nextjs-data-urls-same-domain-multiple-apps/
So what I am doing now is using custom build IDs and prefixing them with
dashboard-
andwebsite-
. Then I proxy all requests via nginx to the related apps: