Currently, different subdomains share exactly same resources with different URLs:
A CDN can easily serve _nuxt
directory under cdn.cmty.io so users have faster page loads when working with different cmty communities.
build: {
publicPath: process.env.BUILD_PUBLIC_PATH
},
And then set BUILD_PUBLIC_PATH
to https://cdn.cmty.io
on Heroku.
Additional: PWA + Workbox may help more improvements too :)
I thought about it as well, we have
publicPath
in Nuxt.js, so better use it 😄I will implement it (as well I trying out
nuxt-edge
), thank you for this feature request :)