Answer the question
In order to leave comments, you need to log in
How to change the pages folder in NextJS depending on the condition?
The task is to use 3 different domain prefixes to access different folders on the server
Like this:
test.ru => /pages/ (that is, a standard folder in the next)
msk.test.ru => /msk/
tula.test.ru => /tula/
Is it possible to do this on the next?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question