Skip to content

Setup project use Nuxt 3 with custom routes for support subdomain

License

Notifications You must be signed in to change notification settings

MahsaGoudarzi/subdomain-nuxt3

Repository files navigation

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

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.

About

Setup project use Nuxt 3 with custom routes for support subdomain

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published