Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 6cc2d57

Browse files
committed
fix: use PROXY_PATH correctly
1 parent 6d49996 commit 6cc2d57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redisinsight/ui/vite.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (defaultConfig.api.hostedBase) {
2626
* @type {import('vite').UserConfig}
2727
*/
2828
export default defineConfig({
29-
base,
29+
base: process.env.RI_PROXY_PATH ? `/${process.env.RI_PROXY_PATH}/` : '/',
3030
plugins: [
3131
react(),
3232
svgr({ include: ['**/*.svg?react'] }),
@@ -128,7 +128,7 @@ export default defineConfig({
128128
},
129129
// hack: apply proxy path to monaco webworker
130130
experimental: {
131-
renderBuiltUrl() {
131+
renderBuiltUrl(filename, { hostId, hostType, type }) {
132132
return { relative: true }
133133
},
134134
}

0 commit comments

Comments
 (0)