4a673ebb28
Adds basePath config, withBase/appUrl helpers, base-path-aware cookies, OAuth redirects, manifest, service worker and cron runner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
303 B
TypeScript
10 lines
303 B
TypeScript
import { BASE_PATH } from "@/lib/base-path";
|
|
import { NextResponse } from "next/server";
|
|
import { COOKIE_NAME } from "@/lib/auth/session";
|
|
|
|
export async function POST() {
|
|
const res = NextResponse.json({ ok: true });
|
|
res.cookies.delete({ name: COOKIE_NAME, path: BASE_PATH || "/" });
|
|
return res;
|
|
}
|