Skip to content

Commit affb26d

Browse files
committed
chore: disable auto-open browser after first launch
1 parent f0fe657 commit affb26d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/base.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const isProd = process.env.NODE_ENV === 'production'
99
const isDev = process.env.NODE_ENV === 'local'
1010
let inspectorProcess = null
1111
let webProcess = null
12+
let autoOpenBrowser = true
1213

1314
/** @type {import('esbuild').BuildOptions} */
1415
export const config = {
@@ -74,9 +75,10 @@ const after = async result => {
7475
env: {
7576
...process.env,
7677
DANGEROUSLY_OMIT_AUTH: true,
77-
MCP_AUTO_OPEN_ENABLED: false,
78+
MCP_AUTO_OPEN_ENABLED: autoOpenBrowser,
7879
},
7980
})
81+
autoOpenBrowser = false
8082

8183
if (process.env.TRANSPORT === 'web') {
8284
if (webProcess) {

0 commit comments

Comments
 (0)