Dubem
Subdomains in Nuxt 3 Router / middleware
You will also need a tool like CLoudflake or you DNS provider to setup a wildcard domain. You can thn point both your main domain and subdomain wildcard the machine/server hosting the build files.
In your code you would need to get the id of the subdomain and fetch data accordingly.
3 replies
Host Express and Nuxt server on same port
When you say "There is no backend on the nuxt server", is it safe to say that it is a static site/ SPA? If so, then you can build the nuxt project in /dist folder and use express to serve the built files. https://expressjs.com/en/starter/static-files.html
6 replies