You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by si...@apache.org on 2022/01/07 04:48:46 UTC

[pinot] branch master updated: Updated frontend dev proxy configuration (#7975)

This is an automated email from the ASF dual-hosted git repository.

siddteotia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new c0b3e9c  Updated frontend dev proxy configuration (#7975)
c0b3e9c is described below

commit c0b3e9ca6a76d5eb797675132bfd9d1589d4f72d
Author: Gaurav Joshi <68...@users.noreply.github.com>
AuthorDate: Thu Jan 6 20:48:29 2022 -0800

    Updated frontend dev proxy configuration (#7975)
---
 pinot-controller/src/main/resources/webpack.config.js | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/pinot-controller/src/main/resources/webpack.config.js b/pinot-controller/src/main/resources/webpack.config.js
index 7a4cb24..6ed7a39 100644
--- a/pinot-controller/src/main/resources/webpack.config.js
+++ b/pinot-controller/src/main/resources/webpack.config.js
@@ -46,10 +46,13 @@ module.exports = (env, argv) => {
     devServer: {
       compress: true,
       hot: true,
-      open: true,
-      proxy: {
-        '/': 'http://localhost:9000'
-      }
+      proxy: [
+        {
+            context: "/",
+            target: "http://localhost:9000",
+            changeOrigin: true,
+        },
+      ],
     },
     module: {
       rules: [

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org