update instructions for deployment to Now (#192)

This commit is contained in:
Matthew Sweeney
2020-02-03 22:18:47 +00:00
committed by GitHub
parent 44a4ba102e
commit db19dc093a

View File

@@ -85,13 +85,15 @@ Sapper uses Rollup or webpack to provide code-splitting and dynamic imports, as
To start a production version of your app, run `npm run build && npm start`. This will disable live reloading, and activate the appropriate bundler plugins.
You can deploy your application to any environment that supports Node 8 or above. As an example, to deploy to [Now](https://zeit.co/now), run these commands:
You can deploy your application to any environment that supports Node 10 or above. As an example, to deploy to [ZEIT Now](https://zeit.co/now) when using `sapper export`, run these commands:
```bash
npm install -g now
now
```
If your app can't be exported to a static site, you can use the [now-sapper](https://github.com/thgh/now-sapper) builder. You can find instructions on how to do so in its [README](https://github.com/thgh/now-sapper#basic-usage).
## Using external components