Static GitHub Issues

[1430] PublicPath for different env?

prev: Update Nuxt
next: What is the best way to load page will all data loaded SSR but load page before data when client?

I want to use nuxt generate to build html in different environment and different publicPath. But i don't know how ?

In dev env, the publicPath is "/"

In staging env, the publicPath is "test-static.xxxcdn.com"

In production env, the publicPath should be "static.xxxcdn.com"

<!--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/c1272">#c1272</a>)</em></sub></div>