Returns 410 Gone instead of crashing with adminDb.collection errors. Was flooding logs with TypeError on every call from the old Cursor extension. Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
385 B
TypeScript
12 lines
385 B
TypeScript
import { NextResponse } from 'next/server';
|
|
|
|
// This endpoint was part of the legacy Cursor extension + Firebase integration.
|
|
// Firebase has been fully removed — return 410 Gone so callers know to stop.
|
|
export async function POST() {
|
|
return NextResponse.json(
|
|
{ error: 'This endpoint is no longer active. Session tracking has been deprecated.' },
|
|
{ status: 410 },
|
|
);
|
|
}
|
|
|