Skip to content

Commit db617e4

Browse files
committed
#CR-10 - Move to vite
1 parent 565e190 commit db617e4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

redisinsight/api/src/middleware/subpath-proxy.middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default class SubpathProxyMiddleware implements NestMiddleware {
1111
res.sendFile = function (this: Response, path: string, options: any, callback?: (err?: Error) => void) {
1212
if (path.endsWith('.html')) {
1313
let content = fs.readFileSync(path, 'utf8');
14-
const regex = /{{ RIPROXYPATH }}/g;
14+
const regex = /\/?__RIPROXYPATH__/g;
1515
content = content.replace(regex, proxyPath);
1616
res.send(content);
1717
return;

redisinsight/ui/vite.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default defineConfig({
3636
// 'monaco-yaml/yaml.worker',
3737
],
3838
esbuildOptions: {
39+
// fix for https://github.com/bvaughn/react-virtualized/issues/1722
3940
plugins: [fixReactVirtualized],
4041
},
4142
},

0 commit comments

Comments
 (0)