Skip to content

Commit 7b80474

Browse files
committed
fix(rsbuild.config): Set default AGENT_API_HOST to localhost:8000
1 parent 1fe2d77 commit 7b80474

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/rsbuild.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export default defineConfig(({ mode }) => {
88
const env = loadEnv(mode, process.cwd());
99

1010
// first try process.env.AGENT_API_HOST from docker environment, then try env.parsed.AGENT_API_HOST from .env file
11-
const AGENT_API_HOST = process.env.AGENT_API_HOST || env.parsed.AGENT_API_HOST;
11+
// finally use http://localhost:8000 as default
12+
const AGENT_API_HOST = process.env.AGENT_API_HOST || env.parsed.AGENT_API_HOST || 'http://localhost:8000';
1213

1314
return {
1415
plugins: [

0 commit comments

Comments
 (0)