/nextjs-subdomain-example

https://stackoverflow.com/a/63544520/9375533

Primary LanguageJavaScript

Next.js Subdomain Example

It uses the following as references:

If we are going to run this using next dev we will have the following routes:

But by running node server.js we will have the following routes:

Development Setup

  • git clone https://github.com/dcangulo/nextjs-subdomain-example.git
  • cd nextjs-subdomain-example
  • yarn
  • yarn dev