Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
"supertest": "^4.0.2",
"terser-webpack-plugin": "^5.3.10",
"text-encoding": "^0.7.0",
"tidewave": "^0.5.5",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
"ts-mockito": "^2.6.1",
Expand Down
6 changes: 6 additions & 0 deletions redisinsight/ui/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import istanbul from 'vite-plugin-istanbul';
import { fileURLToPath, URL } from 'url';
import path from 'path';
import { defaultConfig } from './src/config/default';
import tidewave from 'tidewave/vite-plugin';


const isElectron = defaultConfig.app.type === 'ELECTRON';
// set path to index.tsx in the index.html
Expand All @@ -34,6 +36,7 @@ if (defaultConfig.api.hostedBase) {
export default defineConfig({
base,
plugins: [
tidewave(),
react(),
svgr({ include: ['**/*.svg?react'] }),
reactClickToComponent(),
Expand Down Expand Up @@ -90,6 +93,9 @@ export default defineConfig({
fs: {
allow: ['..', '../../node_modules/monaco-editor', 'static', 'defaults'],
},
proxy: {
"/tidewave": `http://localhost:5540` // your backend port
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"/tidewave": `http://localhost:5540` // your backend port
'/tidewave': 'http://localhost:5540'

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Incorrect Vite proxy configuration format

The proxy configuration uses a string value directly instead of an object with a target property. Vite's proxy configuration expects an object format like { target: 'http://localhost:5540' }. The current string format may cause the proxy to fail or behave unexpectedly during development.

Fix in Cursor Fix in Web

},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Tidewave proxy points to wrong backend port

The proxy configuration routes /tidewave requests to http://localhost:5540, which is the RedisInsight API server port, not the tidewave backend. Tidewave runs its own separate backend service that needs to be proxied. This hardcoded port conflicts with the existing RedisInsight API and will cause tidewave requests to fail since the RedisInsight API doesn't handle tidewave endpoints.

Fix in Cursor Fix in Web

},
envPrefix: 'RI_',
optimizeDeps: {
Expand Down
Loading