This is a sample project demonstrating Nuxt.js and @nuxtjs/router module subdomains implementation.
- Launch nuxt app
- Open root url: localhost:3000 and make sure your root page index rendered correctly.
- Open any subdomain url: example.localhost:3000 and make sure subdomain page is rendered.
# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
$ yarn dev
# build for production and launch server
$ yarn build
$ yarn start
# generate static project
$ yarn generate