Skip to content

Commit dcd5d2a

Browse files
hugocasaclaude
andcommitted
refactor: static-import webmux-paths in cli entry
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4213f44 commit dcd5d2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/src/webmux.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { existsSync } from "node:fs";
55
import { fileURLToPath } from "node:url";
66
import type { Subprocess } from "bun";
77
import pkg from "../../package.json";
8+
import { webmuxConfigEnvPath } from "../../backend/src/adapters/webmux-paths";
89

910
// ── Helpers ──────────────────────────────────────────────────────────────────
1011

@@ -356,7 +357,6 @@ async function main(args: string[] = process.argv.slice(2)): Promise<void> {
356357
// and the launch project's `.env` both take precedence. Its keys join
357358
// projectEnvKeys so they're stripped from the tmux global environment like any
358359
// other secret webmux loads, rather than leaking into every session and pane.
359-
const { webmuxConfigEnvPath } = await import("../../backend/src/adapters/webmux-paths");
360360
for (const key of await loadEnvFile(webmuxConfigEnvPath())) projectEnvKeys.add(key);
361361

362362
// When the user didn't pin a port, point CLI commands at the live server for

0 commit comments

Comments
 (0)