From 18c28fa59286e2c5898bac935ba1a3266a485d98 Mon Sep 17 00:00:00 2001 From: myftija Date: Fri, 19 Sep 2025 19:03:53 +0200 Subject: [PATCH] fix(api): 204 response issue in deployment start endpoint --- .../app/routes/api.v1.deployments.$deploymentId.start.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/webapp/app/routes/api.v1.deployments.$deploymentId.start.ts b/apps/webapp/app/routes/api.v1.deployments.$deploymentId.start.ts index a82d452383..da73cf1be3 100644 --- a/apps/webapp/app/routes/api.v1.deployments.$deploymentId.start.ts +++ b/apps/webapp/app/routes/api.v1.deployments.$deploymentId.start.ts @@ -51,12 +51,12 @@ export async function action({ request, params }: ActionFunctionArgs) { }) .match( () => { - return json(null, { status: 204 }); + return new Response(null, { status: 204 }); }, (error) => { switch (error.type) { case "failed_to_extend_deployment_timeout": - return json(null, { status: 204 }); // ignore these errors for now + return new Response(null, { status: 204 }); // ignore these errors for now case "deployment_not_found": return json({ error: "Deployment not found" }, { status: 404 }); case "deployment_not_pending":