import { NextResponse } from "next/server"; import { SEEDED } from "@/lib/runtime"; // Dev-only: drop a cookie matching the seeded session. In production this is // replaced by Better Auth's sign-in flow at /api/auth/*. export async function POST(): Promise { const res = NextResponse.json({ ok: true, userId: SEEDED.user.id }); res.cookies.set("rd-dev-session", SEEDED.sessionId, { httpOnly: true, sameSite: "lax", path: "/", }); return res; }