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({ return NextResponse.json({
status: "starting", status: "starting",
previewUrl: last.preview_url, previewUrl: last?.preview_url ?? null,
command: last.command, command: restartOpts.command,
port: last.port, port: restartOpts.port,
}); });
} }