Answer the question
In order to leave comments, you need to log in
How to make routing based on domain name in nuxt?
Hello, can you please tell me if
there is any solution for routing based on domain names?
Now I have pages in
nuxt /pages/_site.vue (similar to {path: '/:site'})
/pages/settings/_site/promo.vue, /pages/settings/_site/products.vue etc .
Routes are obtained like test.local/megasite, test.local/settings/megasite/, test.local/settings/megasite/promo
I would like to find a simple solution that would allow me to transfer some sites to separate domains
http://megasite.local megasite.local/settings, megasite.local/settings/promo
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