fix: stabilize remote preview proxy

This commit is contained in:
Bohdan Triapitsyn
2026-04-30 12:22:49 +03:00
parent d7ddc7cf4d
commit 371eac9db3
2 changed files with 45 additions and 11 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ export async function detectDevServerCommand(
if (devScript) {
// Determine the package manager command
const pm = await detectPackageManager(directory);
const pmCommand = pm === 'npm' ? 'npm run' : pm === 'yarn' ? 'yarn' : pm === 'pnpm' ? 'pnpm' : pm === 'bun' ? 'bun' : 'npm run';
const pmCommand = pm === 'npm' ? 'npm run' : pm === 'yarn' ? 'yarn' : pm === 'pnpm' ? 'pnpm' : pm === 'bun' ? 'bun run --shell=bun' : 'npm run';
return {
command: `${pmCommand} ${devScript}`,
label: `Start (${devScript})`,