In this repo I created nuxt 3 project with custom router.options for subdomain and dynamic pages based on dynamic subdomain as well. for example you can rich to subdomain1.host.com -> redirect you to page -> pages->subdomain1->index.vue and also with entering url : subdomain1.host.com/about -> redirect you to page -> pages->subdomain1->about.vue
Nuxt 3 - custom router options for subdomain and vuetify <3
Nuxt 3 Minimal Starter
Look at the nuxt 3 documentation to learn more.
Setup
Make sure to install the dependencies:
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install --shamefully-hoist
Development Server
Start the development server on http://localhost:3000
npm run dev
Production
Build the application for production:
npm run build
Locally preview production build:
npm run preview
Checkout the deployment documentation for more information.