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)