Static GitHub Issues

[908] CDN configuration challenges when using domain

prev: Middleware for specific route
next: Can't override default webpack loader config

Ok, after spending few frustrating hrs with CDN engineers (MaxCDN) and hosting engineers (zeit now) too... I need help setup my site.

In nuxt.config:

  build: {
    publicPath: 'https://xxx.netdna-ssl.com/_nuxt',
    ...

Once deployed on now, I get my SSR render JS with path, for example...

<link rel="prefetch" href="https://xxx.netdna-ssl.com/_nuxt/6.nuxt.bundle.9abd8a19419e6d87b4cd.js" as="script">

Above domain points to SSL endpoint at MaxCDN. They cache the file when requested, back from my hosted domain. But here is the issue since when this file is requested it returns my web page with 404 instead of JS! If I remove CDN, JS is properly returned.

Whats wrong here? Any help is really appreciated.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c776">#c776</a>)</em></sub></div>