Dynamic Subdomain Support in Nuxt3
I'm working on implementing dynamic subdomain handling in Nuxt by using a router.options file, as described in this article https://zernonia.keypress.blog/why-keypress. However, I'm facing an issue where the platform page doesn't render correctly when a user visits it through a subdomain, it shows the error
404 page not found: /
.
I rather don't want to use the nuxt-multi-tenancy package.
https://github.com/hieuhani/nuxt-multi-tenancy
1 Reply
I've fixed this problem by changing the (replace) path param name, example:
.../:platformUrl
should be .../:platformUrl()