diff --git a/web/.env.example b/web/.env.example index ba4c9f5..a356370 100644 --- a/web/.env.example +++ b/web/.env.example @@ -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= diff --git a/web/src/app/api/run/route.ts b/web/src/app/api/run/route.ts index d526f71..09298d1 100644 --- a/web/src/app/api/run/route.ts +++ b/web/src/app/api/run/route.ts @@ -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,