Skip to content

Commit

Permalink
ui: only set query url to localhost if config option is falsy
Browse files Browse the repository at this point in the history
The `THANOS_QUERY_URL` constant is already assigned to `{{ .queryURL }}` in `public/index.html`.
Remove this comparison, as it causes the `--alert.query-url` command line option to have no effect whatsoever.

Fixes thanos-io#6370

Signed-off-by: Steffen Neubauer <stefreak@googlemail.com>
  • Loading branch information
stefreak committed Jul 12, 2023
1 parent 4218109 commit 309cfd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ui/react-app/src/thanos/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare const THANOS_QUERY_URL: string;

export let queryURL = THANOS_QUERY_URL;
if (queryURL === '' || queryURL === '{{ .queryURL }}') {
if (!queryURL) {
queryURL = 'http://localhost:10902';
}

0 comments on commit 309cfd6

Please sign in to comment.