Skip to content

Commit 148424f

Browse files
committed
DARTLAB_NO_BROWSER 환경변수로 브라우저 방지
PyPI 0.2.5에서도 동작하도록 환경변수 방식 병행. --no-browser 플래그 + DARTLAB_NO_BROWSER=1 동시 설정.
1 parent faca851 commit 148424f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/runner.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub fn start_server(app_dir: &Path) -> Result<(), String> {
1414

1515
let child = Command::new(&dartlab)
1616
.args(["ai", "--port", &PORT.to_string(), "--no-browser"])
17+
.env("DARTLAB_NO_BROWSER", "1")
1718
.current_dir(app_dir)
1819
.stdout(Stdio::null())
1920
.stderr(Stdio::null())

0 commit comments

Comments
 (0)