New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subdomain Routing in vuejs #233
Comments
If this is posible I'll be very surprised. |
+1 |
You shouldn't need vue-router to get this. Just use |
My solution is this :
I hope it will be helpful for others. |
What about SSR? How to get domain name on server? |
For SSR see nuxt/nuxt#2378 |
@zolotov88 if you are using ssr you will only want use window when it is available and if you are using express use the 'req' param of your middleware to get the subdomain on first request and the use that to match routes with. |
in nuxt with dev server I'm getting window is not defined even if I'm using !process.server. How to handle that? |
Hi everybody. Our first vuejs project next to end. But I faced a problem with routing subdomains. Users can use their user names as subdomain to show their contact informations for example : http://kamuransonecek.exlample.com
how can I detect username from subdomain to routing the site pages?
This codes not work as I espected. I wait for your helps. Thanks
The text was updated successfully, but these errors were encountered: