How To Serve Cdn Links For Assets In NuxtJS?
I am working on a NUXTJs to create server side rendered website. My question is that although there is a assets/static folder in nuxt project structure to serve images & static
Solution 1:
You can set it via publicPath property in nuxt.config
export default {
build: {
publicPath: 'https://cdn.nuxtjs.org'
}
}
Solution 2:
If you have a team working on the project, use Vuex. It save the baseURL
in the project itself. Less hassle to copy/share the env variables to the team.
Post a Comment for "How To Serve Cdn Links For Assets In NuxtJS?"