Skip to content

Commit d3d8d99

Browse files
amnirNir
authored andcommitted
fix(devcontainer): Make config-ui dev server accessible outside the container
when started by listening on 0.0.0.0 with the `--host` flag. Also ensure it uses port 4000 or fails to start with `--strictPort` to prevent silent port change that will mismatch with the exported dev container port.
1 parent 6fb3b4a commit d3d8d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config-ui/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { defineConfig } from 'vite';
2121
import react from '@vitejs/plugin-react';
2222
import svgr from 'vite-plugin-svgr';
2323

24-
// Allow Grafana access from the dev server when using dev container
24+
// Allow Grafana access from the dev server when using Dev Container
2525
const grafanaOrigin = process.env.VITE_GRAFANA_URL || 'http://localhost:3002';
2626
const grafanaChangeOrigin = envBool('VITE_GRAFANA_CHANGE_ORIGIN', true);
2727

0 commit comments

Comments
 (0)