Replies: 1 comment
-
Hello! Did you check out https://nextjs.org/docs/api-reference/next.config.js/rewrites? If you know the domain in advance, I believe it could work for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a mini website build with nextjs, that is created from a CMS, with the below architecture:
This website in on a subdomain (player.domain.com) and shared among all users. This is working as expected.
Now, there is possibility for that website to have a custom subdomain, for example userjohn.domain.com. In that case i would need the below architecture:
The subdomain is a unique string that can replace the webTVId.
I would need to keep the both routings working. For example, this page player.domain.com/webtv/12345/section/section-1 should be a "mirror" of userjohn.domain.com/section/section-1
I could just duplicate all my folders and files (from the page directory) but that would not be very smart I guess.
Any idea on how i could be smart on this? :)
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions