From 09f83f8f6c6c1021d7709be799c1d2c5b3bf3016 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 14 Feb 2024 16:21:06 +0300 Subject: vnext: configure devserver proxy --- vnext/webpack.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'vnext/webpack.config.js') diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js index 6e35235c..12c6e75c 100644 --- a/vnext/webpack.config.js +++ b/vnext/webpack.config.js @@ -88,7 +88,15 @@ module.exports = (env, argv) => { historyApiFallback: true, client: { overlay: true - } + }, + proxy: [{ + context: ['/api'], + target: 'http://localhost:8080', + router: () => 'https://juick.com', + secure: false, + withCredentials: true, + changeOrigin: true + }] } } else { config.plugins.push( -- cgit v1.2.3