You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Hardcoded backend API URL in vite.config.ts breaks dev proxy on default port 8080 and custom environment #9154
The DevLake backend defaults to port 8080, as defined in .env.example, docker-compose-dev.yml, and AGENTS.md.
Anyone starting the backend on its default port and launching config-ui gets ECONNREFUSED proxy errors unless they modify vite.config.ts or change their backend port.
Inflexible development/container setup
When developing inside Dev Containers, Docker, or with a remote backend host, the API target cannot be overridden via environment variables without modifying the tracked vite.config.ts file.
In contrast, the /grafana proxy directly below it in the same file already supports dynamic configuration via:
Default to the DevLake backend's default port (8080).
Allow the backend host, protocol, and port to be overridden through environment variables.
Avoid requiring developers to modify the tracked vite.config.ts file for different development or container environments.
Any API request directed to /api/... fails with ECONNREFUSED because Vite
forwards requests to http://localhost:8081/.
Anything else
• File: config-ui/vite.config.ts (lines 40–44)
• Consistent with how config-ui/nginx.conf and config-ui/nginx.sh
dynamically use ${DEVLAKE_ENDPOINT} in production.
I found this while developing grafana_irm plugin
changed the title [-][Bug][Module Name] Hardcoded backend API URL in vite.config.ts breaks dev proxy on default port 8080 and custom environment[/-][+][Bug] Hardcoded backend API URL in vite.config.ts breaks dev proxy on default port 8080 and custom environment[/+]on Sep 20, 2026
Activity
Thundercloud12 commentedon Sep 20, 2026
@klesh i can raise a pr it is a simple one line change, thanks!
[-][Bug][Module Name] Hardcoded backend API URL in vite.config.ts breaks dev proxy on default port 8080 and custom environment[/-][+][Bug] Hardcoded backend API URL in vite.config.ts breaks dev proxy on default port 8080 and custom environment[/+]klesh commentedon Sep 23, 2026
Sure, go ahead.