Enable experimental-fetch

This commit is contained in:
Yarmo Mackenbach 2022-09-18 21:31:54 +02:00
parent ef64a3ec68
commit 3c5426bf96
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
3 changed files with 6 additions and 3 deletions

View file

@ -23,4 +23,4 @@ RUN npm install jsdom
EXPOSE 3000 EXPOSE 3000
CMD node ./dist/ CMD node --experimental-fetch ./dist/

View file

@ -1,4 +1,7 @@
{ {
"execArgs": [
"--experimental-fetch"
],
"env": { "env": {
"NODE_ENV": "development", "NODE_ENV": "development",
"KX_HIGHLIGHTS_1_NAME": "Yarmo Mackenbach", "KX_HIGHLIGHTS_1_NAME": "Yarmo Mackenbach",

View file

@ -37,7 +37,7 @@
"webpack-cli": "^4.9.2" "webpack-cli": "^4.9.2"
}, },
"scripts": { "scripts": {
"start": "node ./", "start": "node --experimental-fetch ./",
"dev": "yarn run watch & yarn run build:static:dev", "dev": "yarn run watch & yarn run build:static:dev",
"test": "mocha", "test": "mocha",
"watch": "./node_modules/.bin/nodemon --config nodemon.json ./", "watch": "./node_modules/.bin/nodemon --config nodemon.json ./",