diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-01-14 14:57:28 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2022-01-14 14:57:28 +0000 |
| commit | 2f7c589c8808152c374e7e34d7807d51ce651b0e (patch) | |
| tree | a34736129736edf5fefad7aea39936ba43331b77 | |
| parent | move/update README (diff) | |
| download | fedidag-2f7c589c8808152c374e7e34d7807d51ce651b0e.tar.gz fedidag-2f7c589c8808152c374e7e34d7807d51ce651b0e.zip | |
small fixes
| -rw-r--r-- | client/package.json | 2 | ||||
| -rw-r--r-- | client/webpack.config.js | 1 | ||||
| -rw-r--r-- | server/main.ts | 5 |
3 files changed, 2 insertions, 6 deletions
diff --git a/client/package.json b/client/package.json index a3a69f3..2be3f22 100644 --- a/client/package.json +++ b/client/package.json @@ -2,7 +2,7 @@ "name": "fedidag-client", "version": "0.0.1", "scripts": { - "start": "API_PREFIX=http://localhost:3000 webpack serve -w --host 0.0.0.0", + "start": "API_PREFIX=http://localhost:3000 webpack serve --host 0.0.0.0", "build": "webpack --config ./webpack.config.js --mode production --progress" }, "babel": { diff --git a/client/webpack.config.js b/client/webpack.config.js index 62ce3a6..7384a0b 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -25,7 +25,6 @@ module.exports = { }, plugins: [ new webpack.EnvironmentPlugin({ - NODE_ENV: 'production', DEBUG: false, PUBLIC_URL: null, API_PREFIX: null, diff --git a/server/main.ts b/server/main.ts index 7584d86..9dc6191 100644 --- a/server/main.ts +++ b/server/main.ts @@ -15,10 +15,7 @@ const DEBUG = process.env.NODE_ENV ? process.env.NODE_ENV !== 'production' : PUB const app = express(); if (DEBUG) { - app.use(cors({ - origin: 'http://localhost:8080', - credentials: true, - })); + app.use(cors({ origin: true, credentials: true })); app.use(express.static('../client/dist/')); } else { app.use(express.static('static')); |
