Nuxt CDN: How to host JS files?

Viewed 349

Nuxt has a default configuration for CDN. You just have to do:

// nuxt.config.js
module.exports = {
  //...
  build: {
    publicPath: "https://you-cdn-url.com/_nuxt/"
  }
}

But when I go to my console, the application just gets images from the CDN. I was hoping it would also load CSS and JS files.

Can I make it work?

(The Nuxt app is SSR)

1 Answers
Related