Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
Remove hte posthog proxy from docs in favor of edge rewrites (#1219)
Morgan Deancf928e924449
diff --git a/docs/src/app/api/posthog/[...path]/route.ts b/docs/src/app/api/posthog/[...path]/route.tsdeleted file mode 100644index 24e2e75184..0000000000--- a/docs/src/app/api/posthog/[...path]/route.ts+++ /dev/null@@ -1,75 +0,0 @@-import { NextRequest, NextResponse } from 'next/server';--export async function GET(- request: NextRequest,- { params }: { params: Promise<{ path: string[] }> }-) {- const { path } = await params;- const url = new URL(request.url);-- const targetUrl = `${process.env.NEXT_PUBLIC_POSTHOG_HOST}/${path.join('/')}${url.search}`;-- try {- const response = await fetch(targetUrl, {- method: 'GET',- headers: {- 'Content-Type': request.headers.get('Content-Type') || 'application/json',- },- });-- // 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,- headers: {- 'Content-Type': response.headers.get('Content-Type') || 'application/json',- },- });- } catch (error) {- console.error('PostHog proxy error:', error);- return new NextResponse('Error proxying request', { status: 500 });- }-}--export async function POST(- request: NextRequest,- { params }: { params: Promise<{ path: string[] }> }-) {- const { path } = await params;- const url = new URL(request.url);-- const targetUrl = `${process.env.NEXT_PUBLIC_POSTHOG_HOST}/${path.join('/')}${url.search}`;-- try {- const body = await request.arrayBuffer();- const contentType = request.headers.get('Content-Type') || 'application/x-www-form-urlencoded';-- const response = await fetch(targetUrl, {- method: 'POST',- headers: {- 'Content-Type': contentType,- },- 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,- headers: {- 'Content-Type': response.headers.get('Content-Type') || 'application/json',- },- });- } catch (error) {- console.error('PostHog proxy error:', error);- return new NextResponse('Error proxying request', { status: 500 });- }-}