9 lines
440 B
TypeScript
9 lines
440 B
TypeScript
import { NextRequest, NextResponse } from "next/server"
|
|
|
|
// This route handler has a known issue with Next.js 15 fetch augmentation
|
|
// on this platform. The client-side code calls the AI server directly
|
|
// via browser fetch (CORS is open). This handler returns a fallback.
|
|
export async function POST(request: NextRequest) {
|
|
return NextResponse.json({ error: "AI service unavailable on server. Use client-side mode." }, { status: 503 })
|
|
}
|