F
F
foxijke2018-06-19 10:01:31
Node.js
foxijke, 2018-06-19 10:01:31

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

1 answer(s)
K
Klein Maximus, 2019-05-27
@kleinmaximus

https://nextjs.org/docs#multi-zones

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question