Skip to content

Commit

Permalink
Fixed issues with environment variables for Windows users (#37853)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinometric authored Aug 11, 2022
1 parent 7f54585 commit 1f6bc34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/cms-contentful/contentful/setup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const spaceImport = require('contentful-import')
const exportFile = require('./export.json')

const [CONTENTFUL_SPACE_ID, CONTENTFUL_MANAGEMENT_TOKEN] = process.argv.slice(2)
const { CONTENTFUL_SPACE_ID, CONTENTFUL_MANAGEMENT_TOKEN } = process.env

if (!CONTENTFUL_SPACE_ID || !CONTENTFUL_MANAGEMENT_TOKEN) {
throw new Error(
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-contentful/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dev": "next",
"build": "next build",
"start": "next start",
"setup": "node ./contentful/setup.js $CONTENTFUL_SPACE_ID $CONTENTFUL_MANAGEMENT_TOKEN"
"setup": "node ./contentful/setup.js"
},
"dependencies": {
"@contentful/rich-text-react-renderer": "^15.4.0",
Expand Down

0 comments on commit 1f6bc34

Please sign in to comment.