Files
vibn-frontend/app/api/sessions/track/route.ts
Mark Henderson 81cca70542 fix: retire legacy Firebase session tracking endpoint
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>
2026-02-19 15:26:12 -08:00

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 },
);
}