How to redirect pages/app folder to subdomain in next.js #12807
Unanswered
NishargShah
asked this question in
Help
Replies: 1 comment 3 replies
-
try nginx or traefik for reverse proxy |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I search a lot for this on the internet but I don't find any article related to it.
Like I have a folder called pages in the root of my project and below tree is files of it.
next.js gives default behavior when someone opens
project.local:3000
it will openindex.js
andproject.local:3000/app
it will openapp/index.js
but I want that when someone openapp.project.local:3000
it will openapp/index.js
.My Hosts file
127.0.0.1 project.local
127.0.0.1 app.project.local
Beta Was this translation helpful? Give feedback.
All reactions