Explorar o código

change ws route in webpack-dev-server

axolotle %!s(int64=3) %!d(string=hai) anos
pai
achega
d540a9d351
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      vue.config.js

+ 8 - 0
vue.config.js

@@ -24,6 +24,14 @@ module.exports = {
     port: 8988,
     disableHostCheck: true,
     publicPath: '/',
+    sockHost: 'localhost',
+    public: 'localhost:8988/',
+    proxy: {
+      '^/api': {
+        target: 'http://0.0.0.0:9000',
+        logLevel: 'debug'
+      }
+    },
     // quiet: false,
     watchOptions: {
       ignored: /node_modules/