aboutsummaryrefslogtreecommitdiff
path: root/vnext/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-02-14 16:21:06 +0300
committerGravatar Vitaly Takmazov2024-02-18 18:08:07 +0300
commit09f83f8f6c6c1021d7709be799c1d2c5b3bf3016 (patch)
treef98097e45cbbd64e74dc47b50c2bd156810b4f73 /vnext/webpack.config.js
parentc9c500a07d58fbbbe8bfd1cbc326140872ccc785 (diff)
vnext: configure devserver proxy
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r--vnext/webpack.config.js10
1 files changed, 9 insertions, 1 deletions
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(