fix(preview): resolve TypeError on forced dev server start when no history exists
This commit is contained in:
@@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user