Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

handler for 204

Sarina Lib7fc207ba786
diff --git a/docs/src/app/api/posthog/[...path]/route.ts b/docs/src/app/api/posthog/[...path]/route.ts
index 8db38f2f18..24e2e75184 100644
--- a/docs/src/app/api/posthog/[...path]/route.ts
+++ b/docs/src/app/api/posthog/[...path]/route.ts
@@ -17,6 +17,11 @@ export async function GET(
},
});
+ // Handle 204 No Content responses
+ if (response.status === 204) {
+ return new NextResponse(null, { status: 204 });
+ }
+
const data = await response.arrayBuffer();
return new NextResponse(data, {
status: response.status,
@@ -51,6 +56,11 @@ export async function POST(
body,
});
+ // Handle 204 No Content responses
+ if (response.status === 204) {
+ return new NextResponse(null, { status: 204 });
+ }
+
const data = await response.arrayBuffer();
return new NextResponse(data, {
status: response.status,