mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 08:21:50 -06:00
move proxy settings to env.
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
.env.local
|
||||
node_modules
|
||||
dist
|
||||
|
||||
+2
-2
@@ -14,11 +14,11 @@ module.exports = {
|
||||
disableHostCheck: true,
|
||||
proxy: {
|
||||
'^/ws': {
|
||||
target: 'ws://192.168.1.20:3000/',
|
||||
target: 'ws://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
||||
ws: true,
|
||||
},
|
||||
'^/api': {
|
||||
target: 'http://192.168.1.20:3000/',
|
||||
target: 'http://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user