1 Star 1 Fork 0

飘尘 / 我的博客(前端vueJS)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 502 Bytes
一键复制 编辑 原始数据 按行查看 历史
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
devServer: {
// host: 'localhost',
// port: "8080",
// open: true,
proxy: {
'^/api': {
target: 'http://localhost:3000/',//接口的前缀(后端地址)
// ws: true,//代理websocked
changeOrigin: true,//虚拟的站点需要更管origin
pathRewrite:{
'^/api':''//重写路径
}
}
}
}
})
1
https://gitee.com/piao-chen/my-blog---frontend-vue.git
git@gitee.com:piao-chen/my-blog---frontend-vue.git
piao-chen
my-blog---frontend-vue
我的博客(前端vueJS)
dev

搜索帮助