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({
|
||||
status: "starting",
|
||||
previewUrl: last.preview_url,
|
||||
command: last.command,
|
||||
port: last.port,
|
||||
previewUrl: last?.preview_url ?? null,
|
||||
command: restartOpts.command,
|
||||
port: restartOpts.port,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user