dev env
This commit is contained in:
@@ -95,17 +95,25 @@ const config = {
|
||||
},
|
||||
devServer: {
|
||||
proxy: {
|
||||
"/note": {
|
||||
target: "https://flagnote.com/", // 后台接口域名
|
||||
//target: "http://localhost:20000/", // 后台接口域名
|
||||
"/redirect": {
|
||||
//target: "https://flagnote.com/", // 后台接口域名
|
||||
target: "http://localhost:21000/", // 后台接口域名
|
||||
secure: false, // 如果是https接口,需要配置这个参数
|
||||
changeOrigin: true, //是否跨域
|
||||
pathRewrite: {
|
||||
'^/': '/html/'
|
||||
},
|
||||
},"/note": {
|
||||
//target: "https://flagnote.com/", // 后台接口域名
|
||||
target: "http://localhost:21000/", // 后台接口域名
|
||||
secure: false, // 如果是https接口,需要配置这个参数
|
||||
changeOrigin: true, //是否跨域
|
||||
pathRewrite: {
|
||||
// '^/': '/'
|
||||
},
|
||||
}, "^/[abcdefhikmnopqstuvwxyz23456789]{16}\\.txt$": {
|
||||
target: "https://flagnote.com/", // 后台接口域名
|
||||
//target: "http://localhost:20000/", // 后台接口域名
|
||||
//target: "https://flagnote.com/", // 后台接口域名
|
||||
target: "http://localhost:21000/", // 后台接口域名
|
||||
secure: false, // 如果是https接口,需要配置这个参数
|
||||
changeOrigin: true, //是否跨域
|
||||
pathRewrite: {
|
||||
|
||||
Reference in New Issue
Block a user