We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09ac03a commit 245c6adCopy full SHA for 245c6ad
apps/webapp/app/routes/engine.v1.dev.disconnect.ts
@@ -35,6 +35,12 @@ const { action } = createActionApiRoute(
35
method: "POST",
36
},
37
async ({ authentication, body }) => {
38
+ // Only allow dev environments — this endpoint uses finalizeRun which
39
+ // skips PENDING_CANCEL and immediately finalizes executing runs.
40
+ if (authentication.environment.type !== "DEVELOPMENT") {
41
+ return json({ error: "This endpoint is only available for dev environments" }, { status: 403 });
42
+ }
43
+
44
const environmentId = authentication.environment.id;
45
46
// Rate limit per environment
0 commit comments