git.s-ol.nu fedidag / 2f7c589
small fixes s-ol 6 months ago
3 changed file(s) with 2 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
11 "name": "fedidag-client",
22 "version": "0.0.1",
33 "scripts": {
4 "start": "API_PREFIX=http://localhost:3000 webpack serve -w --host 0.0.0.0",
4 "start": "API_PREFIX=http://localhost:3000 webpack serve --host 0.0.0.0",
55 "build": "webpack --config ./webpack.config.js --mode production --progress"
66 },
77 "babel": {
2424 },
2525 plugins: [
2626 new webpack.EnvironmentPlugin({
27 NODE_ENV: 'production',
2827 DEBUG: false,
2928 PUBLIC_URL: null,
3029 API_PREFIX: null,
1414 const app = express();
1515
1616 if (DEBUG) {
17 app.use(cors({
18 origin: 'http://localhost:8080',
19 credentials: true,
20 }));
17 app.use(cors({ origin: true, credentials: true }));
2118 app.use(express.static('../client/dist/'));
2219 } else {
2320 app.use(express.static('static'));