fix: build issues

This commit is contained in:
BennyKok 2023-12-16 23:17:04 +08:00
parent 8f102d2ca4
commit 1dc04a8752
2 changed files with 3 additions and 7 deletions

View File

@ -1,11 +1,5 @@
POSTGRES_DATABASE="verceldb"
POSTGRES_HOST="localhost:5480"
POSTGRES_PASSWORD="postgres"
POSTGRES_PRISMA_URL="postgres://postgres:postgres@localhost:5480/verceldb?pgbouncer=true&connect_timeout=15"
POSTGRES_SSL="false"
POSTGRES_URL="postgres://postgres:postgres@localhost:5480/verceldb"
POSTGRES_URL_NON_POOLING="postgres://postgres:postgres@localhost:5480/verceldb"
POSTGRES_USER="postgres"
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=

View File

@ -90,9 +90,11 @@ export async function POST(request: Request) {
inputs,
);
if ('error' in run_id) throw new Error(run_id.error);
return NextResponse.json(
{
run_id: run_id.workflow_run_id,
run_id: ('workflow_run_id' in run_id) ? run_id.workflow_run_id : '',
},
{
status: 200,