Static GitHub Issues

[2066] Directive issue on static deployment with SPA mode and zeit.co/now

prev: Not able to access ':root' pseudo class.
next: head () doesn't work properly in Page Components on initial page load (default tags are rendered)

Hello,

I am facing following issue after build and upload the static assets of the dist directory with zeit.co/now service:

On page reload all pages are simply not available, because they are called like:

  • domain.com => not found
  • domain.com/some-folder => not found

I need to explicit set

  • domain.com/
  • domain.com/some-folder/ To make the pages load correctly.

Is there some option missing in the Nuxt config to make this work? I now changed back to npm mode of the deployment to make it work again but curious why this issue occurs.

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