docs: Deploying our Gatsby storefront on Netlify (#443)

This commit is contained in:
Oliver Windall Juhl
2021-10-13 20:41:05 +02:00
committed by GitHub
parent 61bd7de9a3
commit d8e0f75406
3 changed files with 82 additions and 1 deletions
+3 -1
View File
@@ -87,7 +87,9 @@ heroku config:set JWT_SECRET=your-super-secret
heroku config:set COOKIE_SECRET=your-super-secret-pt2
heroku config:set NPM_CONFIG_PRODUCTION=false
```
> Make sure to use actual secrets in a production environment.
Additionally, we need to set the buildpack to Node.js
```shell=
@@ -137,7 +139,7 @@ module.exports = {
database_type: "postgres",
store_cors: STORE_CORS,
admin_cors: ADMIN_CORS,
database_extra:
database_extra:
process.env.NODE_ENV !== "development"
? { ssl: { rejectUnauthorized: false } }
: {},