title: Errors when publishing my nuxtjs website on SSR mode
body: <p>I have some issues while trying to publish a nuxtjs site. Usually, I was using the generate command, but for this one I need to go full SSR, so I'm going for nuxt start.</p>
  
  <p>But after building and starting the app, it's a mess. The build goes perfectly in the console, and the application start. The problem is when I try to access the site, it loads partially, but I got all these errors in the browser:</p>
  
  <pre><code>manifest.3a7efd91c5f63f114507.js
  Failed to load resource: the server responded with a status of 404 ()
  vendor.7519259bf7bdf608079e.js
  Failed to load resource: the server responded with a status of 404 ()
  app.a5cb9356f53306f973dc.js
  Failed to load resource: the server responded with a status of 404 ()
  default.1f3ad14df16ee86595af.js
  Failed to load resource: the server responded with a status of 404 ()
  index.260dc65b69022a31ad58.js
  Failed to load resource: the server responded with a status of 404 ()
  /_nuxt/pages/spot/_slug.e57cc2e78d8e0b160fe7.js
  Failed to load resource: the server responded with a status of 404 ()
  manifest.3a7efd91c5f63f114507.js
  Failed to load resource: the server responded with a status of 404 ()
  default.1f3ad14df16ee86595af.js
  Failed to load resource: the server responded with a status of 404 ()
  index.260dc65b69022a31ad58.js
  Failed to load resource: the server responded with a status of 404 ()
  vendor.7519259bf7bdf608079e.js
  Failed to load resource: the server responded with a status of 404 ()
  app.a5cb9356f53306f973dc.js
  Failed to load resource: the server responded with a status of 404 ()
  </code></pre>
  
  <p>Nothing seems wrong during the build. When I use nuxt start, I get this:</p>
  
  <pre><code>$ nuxt start
    nuxt:axios BaseURL: http://localhost:3042/api (Browser: /api) +0ms
  
    OPEN  http://localhost:3042
  </code></pre>
  
  <p>Here's my server conf file:</p>
  
  <pre><code># Site global
  server {
      listen 443 ssl http2;
      server_name www.mywebsite.com;
      access_log  off;
  
      location = /robots.txt  { access_log off; log_not_found off; }
      location = /favicon.ico { access_log off; log_not_found off; }
      location / {
          proxy_pass http://127.0.0.1:3042/;
          include /etc/nginx/conf.d/proxy.conf;
          root /var/www/mywebsite/site;
          add_header Access-Control-Allow-Origin *;
      }
  
      location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|txt|srt|swf)$ {
          root /var/www/mywebsite/site/;
          expires 30d;
      }
  
      ssl_certificate /etc/letsencrypt/live/www.mywebsite.com/fullchain.pem;
      ssl_certificate_key /etc/letsencrypt/live/www.mywebsite.com/privkey.pem;
  }
  
  # Redirection
  server {
      listen 80;
      server_name mywebsite.com www.mywebsite.com;
  
      location / {
          return 301 https://www.mywebsite.com$request_uri;
      }
  }
  </code></pre>
  
  <p>And my nuxt config file:</p>
  
  <pre><code>    const pkg = require('./package')
  
  module.exports = {
      mode: 'universal',
  
      loading: { color: '#bb2b4d' },
  
      router: {
          linkActiveClass: '-active',
          base: '/'
      },
  
      css: ['@/assets/icons/css/icons.css', '@/assets/snickles/snickles.css'],
  
      plugins: ['~plugins/vue-filters.js', '~plugins/vue-modal.js'],
  
      minify: {
          removeEmptyAttributes: false,
          collapseWhitespace: true,
          conservativeCollapse: true,
          collapseBooleanAttributes: true,
          removeTagWhitespace: false,
          removeStyleLinkTypeAttributes: true
      },
  
      modules: [
  
          '@nuxtjs/axios'
      ],
  
      axios: {
  
      },
  
      env: {
          api: {
              spots: `https://rest.mywebsite.com/spots`
          }
      },
  
      proxy: {
      },
  
      build: {
          extend(config, ctx) {
              // Run ESLint on save
              if (ctx.isDev &amp;&amp; ctx.isClient) {
                  config.module.rules.push({
                      enforce: 'pre',
                      test: /\.(js|vue)$/,
                      loader: 'eslint-loader',
                      exclude: /(node_modules)/
                  })
              }
          }
      },
  
      postcss: [require('autoprefixer')],
  
      vendor: ['moment', 'vue-js-modal']
  }
  </code></pre>
  
  <p>Did I forget anything?
  The most strange part is that it works perfectly well when I do the same on my own pc and not on my server. I checked the npm and node versions, they are the same (latest to date). Also, if testing with a demo template from NuxtJS, it works perfectly with the exact same server configuration.</p>
  
  <p>By the way, the server is a debian 8, with all packages up to date.</p>
  
  <p>Thanks in advance for any hint.</p>
  
  <p>Edit: If of any use, the error log:</p>
  
  <pre><code>2018/02/14 19:12:54 [error] 12981#12981: *239930 open() "/var/www/mywebsite/site/_nuxt/pages/spot/_slug.e57cc2e78d8e0b160fe7.js" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx., server: www.mywebsite.com, request: "GET /_nuxt/pages/spot/_slug.e57cc2e78d8e0b160fe7.js HTTP/2.0", host: "www.mywebsite.com", referrer: "https://www.mywebsite.com/"
  2018/02/14 19:12:57 [error] 12981#12981: *239930 open() "/var/www/mywebsite/site/_nuxt/manifest.3a7efd91c5f63f114507.js" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: www.mywebsite.com, request: "GET /_nuxt/manifest.3a7efd91c5f63f114507.js HTTP/2.0", host: "www.mywebsite.com", referrer: "https://www.mywebsite.com/"
  2018/02/14 19:12:57 [error] 12981#12981: *239930 open() "/var/www/mywebsite/site/_nuxt/vendor.7519259bf7bdf608079e.js" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: www.mywebsite.com, request: "GET /_nuxt/vendor.7519259bf7bdf608079e.js HTTP/2.0", host: "www.mywebsite.com", referrer: "https://www.mywebsite.com/"
  2018/02/14 19:12:57 [error] 12981#12981: *239930 open() "/var/www/mywebsite/site/_nuxt/app.a5cb9356f53306f973dc.js" failed (2: No such file or directory), client: xxx.xxx.xxx.xxx, server: www.mywebsite.com, request: "GET /_nuxt/app.a5cb9356f53306f973dc.js HTTP/2.0", host: "www.mywebsite.com", referrer: "https://www.mywebsite.com/"
  </code></pre>
  
  <p>Again, it’s working perfectly fine with other nuxt projects, with a similar configuration. Indeed it can’t find these files in this folder, as they’re not in it — which is perfectly normal. It’s up to the app to get the routes to these files, which it usually does pretty well, with the <strong>same directory output</strong> (as I said, it’s supposed not to be in a _nuxt folder).</p>
  
  <p>Thanks.</p>