Skip to content

fix(config-ui): make dev api proxy target configurable via env - #9166

Merged
klesh merged 4 commits into
apache:mainfrom
Thundercloud12:fix/config-ui-dev-api-proxy
Sep 24, 2026
Merged

klesh merged 4 commits into
apache:mainfrom
Thundercloud12:fix/config-ui-dev-api-proxy

Conversation

@Thundercloud12

Copy link
Copy Markdown
Contributor

Summary

Problem

In config-ui/vite.config.ts, the /api dev proxy target was hardcoded to http://localhost:8080/.

When running the backend on a custom port, inside Docker/Dev Containers, or across remote hosts, developers were required to edit the tracked vite.config.ts file. This caused unnecessary git status noise and introduced the risk of accidentally committing local development endpoints.

In contrast, the /grafana proxy directly below it already supported dynamic configuration through VITE_GRAFANA_* environment variables, introduced in #8645.

Solution

Added environment variable support for the /api proxy target, following the existing Grafana configuration pattern:

  • VITE_DEVLAKE_URL — direct URL override
  • VITE_DEVLAKE_PROTOCOL — defaults to http
  • VITE_DEVLAKE_HOST — defaults to localhost
  • VITE_DEVLAKE_PORT — defaults to 8080

Also documented the new VITE_DEVLAKE_* variables in config-ui/env.example.

Does this close any open issues?

Closes <insert issue number>

Screenshots

N/A — Build and development server configuration change.

Other Information

Verified with:

  • yarn tsc --noEmit
  • yarn build

Closes (#9154 )

…KE_URL

Allow overriding the Vite dev server /api proxy target using
VITE_DEVLAKE_URL, defaulting to http://localhost:8080. This avoids
modifying the tracked vite.config.ts during local or dev container
development.
@Thundercloud12

Copy link
Copy Markdown
Contributor Author

@klesh fixes the issue!

@klesh klesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM
Thanks for your contribution.

@klesh
klesh merged commit b3f1885 into apache:main Sep 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants