7 Star 145 Fork 40

CodeMan / SocketChat-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 683 Bytes
一键复制 编辑 原始数据 按行查看 历史
CodeMan 提交于 2022-04-26 16:13 . init
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
transpileDependencies: true,
devServer: {
proxy: {
'/api': {
target: 'http://localhost:3000/api',
changeOrigin: true,
ws: true,
pathRewrite: {
'^/api': ''
}
},
'/socket.io': {
target: 'http://127.0.0.1:3010', // target host
changeOrigin: true, // needed for virtual hosted sites
logLevel: 'debug'
},
'/download': {
target: 'http://localhost:3000',
changeOrigin: true,
ws: true,
pathRewrite: {
'^/download': ''
}
},
}
}
});
1
https://gitee.com/PengGeee/socket-chat-web.git
git@gitee.com:PengGeee/socket-chat-web.git
PengGeee
socket-chat-web
SocketChat-web
master

搜索帮助