Static GitHub Issues

[2390] How to make a specific page rendered for a subdomain when using with express?

prev: Video element - cached element
next: Big gods, how do you configure Axios in the nuxt?(大神们,怎么在nuxt中全局配置axios啊?)

I am using Nuxt with Express.

Out of the box, pages are translated to routes to the main domain.

I am trying to use express-subdomain so that I can have some views (ex: pages/blog/**) rendered under blog.domain.com as well as domain.com/blog.

While other files (other than pages/blog/**) continue to be available under the domain.com only.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2076">#c2076</a>)</em></sub></div>