Updating deployment.md with Windows settings

This add's more clarity for Windows users for an easy way to set the NODE_ENV variables without headache.
This commit is contained in:
Max 2019-12-20 12:34:15 -06:00 committed by GitHub
parent 158a102db7
commit cffe603ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,16 @@ NODE_ENV=production yarn build
NODE_ENV=production npm run build
```
::: tab Windows
```bash
npm install cross-env
```
Then in your `package.json` scripts section:
```bash
"production": "cross-env NODE_ENV=production npm run build"
```
:::
::::
@ -77,6 +87,16 @@ NODE_ENV=production yarn start
NODE_ENV=production npm start
```
::: tab Windows
```bash
npm install cross-env
```
Then in your `package.json` scripts section:
```bash
"production": "cross-env NODE_ENV=production npm start"
```
:::
::::