From 409a60fe96fc51322819064066839373ade0a8c0 Mon Sep 17 00:00:00 2001 From: liudianxin Date: Thu, 23 Apr 2020 18:10:31 +0800 Subject: [PATCH] ...can't resolve 404,copy from nxzh --- config/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/config/index.js b/config/index.js index 1a2199f..8f8f63f 100644 --- a/config/index.js +++ b/config/index.js @@ -9,7 +9,15 @@ module.exports = { // Paths assetsSubDirectory: "static", assetsPublicPath: "/", - + proxyTable: { + "/apaas": { + target: "https://apaas3.wodcloud.com/apaas/", + changeOrigin: true, + pathRewrite: { + "^/apaas": "" + } + } + }, // Various Dev Server settings host: "localhost", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined -- 2.26.0