fix(preview): resolve TypeError on forced dev server start when no history exists

This commit is contained in:
2026-06-12 10:47:36 -07:00
parent e240481ba6
commit 2a7e87c790

View File

@@ -144,8 +144,8 @@ export async function POST(
return NextResponse.json({
status: "starting",
previewUrl: last.preview_url,
command: last.command,
port: last.port,
previewUrl: last?.preview_url ?? null,
command: restartOpts.command,
port: restartOpts.port,
});
}