diff --git a/Dockerfile b/Dockerfile index 52fc976..036ccf4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,4 +23,4 @@ RUN npm install jsdom EXPOSE 3000 -CMD node ./dist/ \ No newline at end of file +CMD node --experimental-fetch ./dist/ \ No newline at end of file diff --git a/nodemon.json b/nodemon.json index b00468a..55a6da0 100644 --- a/nodemon.json +++ b/nodemon.json @@ -1,4 +1,7 @@ { + "execArgs": [ + "--experimental-fetch" + ], "env": { "NODE_ENV": "development", "KX_HIGHLIGHTS_1_NAME": "Yarmo Mackenbach", diff --git a/package.json b/package.json index bd70e86..423ac10 100644 --- a/package.json +++ b/package.json @@ -37,13 +37,13 @@ "webpack-cli": "^4.9.2" }, "scripts": { - "start": "node ./", + "start": "node --experimental-fetch ./", "dev": "yarn run watch & yarn run build:static:dev", "test": "mocha", "watch": "./node_modules/.bin/nodemon --config nodemon.json ./", "build": "yarn run build:server & yarn run build:static", "build:server": "ncc build ./src/index.js -e jsdom -o dist", - "build:static": "webpack --config webpack.config.js --env static=true --env mode=production", + "build:static": "webpack --config webpack.config.js --env static=true --env mode=production", "build:static:dev": "webpack --config webpack.config.js --env static=true --env mode=development", "license:check": "./node_modules/.bin/license-check-and-add check", "license:add": "./node_modules/.bin/license-check-and-add add",