fix: locals
This commit is contained in:
parent
1bbffcd1f6
commit
573ca49d19
|
@ -6,7 +6,7 @@
|
||||||
"build:client": "SIDE=CLIENT webpack --mode production --config webpack.config.js",
|
"build:client": "SIDE=CLIENT webpack --mode production --config webpack.config.js",
|
||||||
"build:docker": "yarn run build:client && yarn run build:server && docker build",
|
"build:docker": "yarn run build:client && yarn run build:server && docker build",
|
||||||
"build:server": "SIDE=SERVER webpack --mode production --config webpack.config.js",
|
"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",
|
"inspect": "node ./inspect.js",
|
||||||
"lint": "eslint --cache --format codeframe --ext mjs,jsx,js src",
|
"lint": "eslint --cache --format codeframe --ext mjs,jsx,js src",
|
||||||
"server": "SIDE=SERVER webpack --watch --mode development --config webpack.config.js",
|
"server": "SIDE=SERVER webpack --watch --mode development --config webpack.config.js",
|
||||||
|
|
|
@ -16,7 +16,7 @@ export function createHttpServer() {
|
||||||
if ('production' !== process.env.NODE_ENV) {
|
if ('production' !== process.env.NODE_ENV) {
|
||||||
const proxy = httpProxy.createProxyServer({
|
const proxy = httpProxy.createProxyServer({
|
||||||
secure: false,
|
secure: false,
|
||||||
target: 'http://192.168.0.190:11345',
|
target: 'http://127.0.0.1:11345',
|
||||||
});
|
});
|
||||||
proxy.on('error', (err, req, res) => {
|
proxy.on('error', (err, req, res) => {
|
||||||
if (!(res instanceof ServerResponse)) {
|
if (!(res instanceof ServerResponse)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user