Dynamic basePath #26308
Unanswered
VojtechVitek
asked this question in
Help
Dynamic basePath
#26308
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to deploy the same Next.js application under different basePaths, ie.
https://<first-domain>/
https://<second-domain>/custom-base-path/
https://<third-domain>/yet-another-base-path/
I understand that I can achieve this by deploying the same application multiple times with different
basePath
setting in next.config.js file.However, do I really need to spin up a new server for each of these use-cases?
I'd like to reuse a single node.js server that can handle all these base paths dynamically. But,
basePath
looks to be static per server instance. Is that correct?Thanks!
Vojtech
Beta Was this translation helpful? Give feedback.
All reactions