Skip to content

Commit

Permalink
docs(heroku): add note about necessary package.json scripts (#377)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Roe <daniel@roe.dev>
  • Loading branch information
edeuxk and danielroe authored Jul 29, 2022
1 parent 97e32e0 commit b848a40
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/deploy/providers/heroku.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ Nitro supports deploying on [Heroku](https://heroku.com/) with minimal configura
```bash
heroku config:set NITRO_PRESET=heroku
```

1. Ensure you have `start` and `build` commands in your `package.json` file.

```json5
"scripts": {
"build": "nitro build", // or `nuxt build` if using nuxt
"start": "node .output/server/index.mjs"
}
```

0 comments on commit b848a40

Please sign in to comment.