fix: locals

This commit is contained in:
cha0s 2020-06-25 05:46:00 -05:00
parent 1bbffcd1f6
commit 573ca49d19
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
"build:client": "SIDE=CLIENT webpack --mode production --config webpack.config.js",
"build:docker": "yarn run build:client && yarn run build:server && docker build",
"build:server": "SIDE=SERVER webpack --mode production --config webpack.config.js",
"client": "SIDE=CLIENT webpack-dev-server --verbose --disable-host-check --host persea.cha0sdev --port 11345 --mode development --config webpack.config.js",
"client": "SIDE=CLIENT webpack-dev-server --verbose --disable-host-check --host localhost --port 11345 --mode development --config webpack.config.js",
"inspect": "node ./inspect.js",
"lint": "eslint --cache --format codeframe --ext mjs,jsx,js src",
"server": "SIDE=SERVER webpack --watch --mode development --config webpack.config.js",

View File

@ -16,7 +16,7 @@ export function createHttpServer() {
if ('production' !== process.env.NODE_ENV) {
const proxy = httpProxy.createProxyServer({
secure: false,
target: 'http://192.168.0.190:11345',
target: 'http://127.0.0.1:11345',
});
proxy.on('error', (err, req, res) => {
if (!(res instanceof ServerResponse)) {