Skip to content

Commit 642a33a

Browse files
chore(dashboard): allow overriding dev API proxy target via env
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent de9cdef commit 642a33a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

dashboard/rsbuild.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ export default defineConfig({
2222
port: 5173,
2323
proxy: {
2424
// Dev mode proxies API calls to a locally running daemon dashboard
25-
// server (`tracedecay dashboard --port 8321`).
26-
'/api': 'http://127.0.0.1:8321',
25+
// server (`tracedecay dashboard --port 8321`). Override the target with
26+
// TRACEDECAY_DASHBOARD_API when verifying against another instance.
27+
'/api': process.env['TRACEDECAY_DASHBOARD_API'] ?? 'http://127.0.0.1:8321',
2728
},
2829
},
2930
performance: {

0 commit comments

Comments
 (0)