From 4a8e1f2deceb07239639862c148400623d0ac481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 5 Oct 2018 09:31:55 +0800 Subject: [PATCH] add proxy demo --- config/config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/config.js b/config/config.js index 04661083..b652e977 100644 --- a/config/config.js +++ b/config/config.js @@ -59,6 +59,13 @@ export default { externals: { '@antv/data-set': 'DataSet', }, + // proxy: { + // '/server/api/': { + // target: 'https://preview.pro.ant.design/', + // changeOrigin: true, + // pathRewrite: { '^/server': '' }, + // }, + // }, ignoreMomentLocale: true, lessLoaderOptions: { javascriptEnabled: true, -- GitLab