Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: fix ws proxy path for dev mode (#9225)
Liu Ji56d49dde9846
diff --git a/frontend/vite.config.ts b/frontend/vite.config.tsindex 1237e878a8..716c0614e3 100644--- a/frontend/vite.config.ts+++ b/frontend/vite.config.ts@@ -55,7 +55,7 @@ export default defineConfig(() => {host: "0.0.0.0",proxy: {"/v1:adminExecute": {- target: `ws://${LOCAL_ENDPOINT}/`,+ target: `ws://${extractHostPort(LOCAL_ENDPOINT)}/`,changeOrigin: true,ws: true,},@@ -91,3 +91,8 @@ export default defineConfig(() => {envPrefix: "BB_",};});++const extractHostPort = (url: string) => {+ const parsed = new URL(url);+ return parsed.host;+};