e30e75b5d4
Code Quality / Oxlint + Oxfmt (push) Waiting to run
Code Quality / Template Sync (push) Waiting to run
Code Quality / Build Changed Packages (push) Waiting to run
Code Quality / Test Changed Packages (push) Waiting to run
Deploy Expo Example / Deploy Production (push) Waiting to run
Deploy Ink Example / Deploy Production (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.12) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Waiting to run
Deploy Shadcn Registry / Deploy Production (push) Waiting to run
Template Metrics / LOC + Bundle Size (push) Waiting to run
Changesets / Create Version PR (push) Has been cancelled
14 lines
321 B
TypeScript
14 lines
321 B
TypeScript
import { NextResponse, type NextRequest } from "next/server";
|
|
|
|
export const config = {
|
|
matcher: ["/umami/api/send"],
|
|
};
|
|
|
|
export function proxy(request: NextRequest) {
|
|
if (request.method === "GET" || request.method === "HEAD") {
|
|
return new NextResponse(null, { status: 204 });
|
|
}
|
|
|
|
return NextResponse.next();
|
|
}
|