How to deploy with Now?

nuxt-now-builder

Now V2

To deploy with Now V2, the Nuxt.js team and contributors worked on an official @nuxtjs/now-builder package.

All you have to do is to setup a now.json file:

{
  "version": 2,
  "builds": [
    {
      "src": "nuxt.config.js",
      "use": "@nuxtjs/now-builder",
      "config": {}
    }
  ]
}

You can learn more and see examples on https://github.com/nuxt/now-builder

Now V1 (legacy)

To deploy with Now V1 a package.json like follows is recommended:

{
  "name": "my-app",
  "dependencies": {
    "nuxt": "latest"
  },
  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start"
  }
}

Then run now and enjoy!

Note: we recommend putting .nuxt in .npmignore or .gitignore.

Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!