Static GitHub Issues

[732] How to deploy to Zeit Now?

prev: Deployment failed in Azure
next: Is the generated site not for static hosting?

It looks like I can't get around the 1MB limitation. /.nuxt/dist/server-bundle.json is 1.2MB. nuxt build seems to be ran no matter what, which leads to the 1MB limit file permission error. (might be similar to https://github.com/zeit/now-cli/issues/175)

from package.json:

  "scripts": {
    "build": "nuxt build",
    "dev": "DEBUG=nuxt:* nodemon --watch src/ --watch config/ --exec ./node_modules/babel-cli/bin/babel-node.js -- ./src/index.js",
    "prestart": "npm run build",
    "start": "NODE_ENV=production ./node_modules/babel-cli/bin/babel-node.js ./src/index.js",
  },

I've tried adding these 2 to make it skip the build (I'll run build locally before upload) but it didn't work

    "now-build": "echo 'not running build because you were suppose to run that locally first'",
    "now-prestart": "echo 'not running prestart because you were suppose to run that locally first'",
> ▲ npm run now-build
> > link-queue@0.0.0 now-build /home/nowuser/src
> > echo 'not running build because you were suppose to run that locally first'
> not running build because you were suppose to run that locally first
> ▲ npm start
> > link-queue@0.0.0 prestart /home/nowuser/src
> > npm run build
> > link-queue@0.0.0 build /home/nowuser/src
> > nuxt build
> [nuxt] Building...
> Wed, 17 May 2017 16:41:54 GMT nuxt:build App root: /home/nowuser/src
> Wed, 17 May 2017 16:41:54 GMT nuxt:build Generating .nuxt/ files...
> { Error: EACCES: permission denied, mkdir '/home/nowuser/src/.nuxt'
>   errno: -13,
>   code: 'EACCES',
>   syscall: 'mkdir',
>   path: '/home/nowuser/src/.nuxt' }

Also, this app is isomorphic, not static.

<!--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/c626">#c626</a>)</em></sub></div>