import { NextResponse } from "next/server"; export const dynamic = "force-dynamic"; export const runtime = "nodejs"; export async function GET(request: Request) { const directUrl = new URL("/api/tree/events", request.url); directUrl.search = new URL(request.url).search; return NextResponse.json( { error: "Next /api/mnote-web/stream compat alias 已退场,请直接使用 /api/tree/events。", redirectTo: directUrl.toString(), }, { status: 410, headers: { "x-mnote-compat-boundary": "mnote-web-stream-alias-retired", }, }, ); }