initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
import { createSupabaseServerClient } from '@/lib/supabase/server';
|
||||
|
||||
export const runtime = 'nodejs';
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export async function POST() {
|
||||
const supabase = createSupabaseServerClient();
|
||||
await supabase.auth.signOut();
|
||||
return NextResponse.redirect(
|
||||
new URL('/', process.env.NEXT_PUBLIC_APP_URL ?? 'http://localhost:3000'),
|
||||
{ status: 303 },
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user