diff --git a/app/api/auth/authorize/route.ts b/app/api/auth/authorize/route.ts index 77d9c20..f4aeb99 100644 --- a/app/api/auth/authorize/route.ts +++ b/app/api/auth/authorize/route.ts @@ -1,6 +1,8 @@ import { NextResponse } from 'next/server' import { cookies } from 'next/headers' +export const dynamic = 'force-dynamic' + export async function GET(request: Request) { try { const { searchParams } = new URL(request.url) diff --git a/app/api/auth/callback/route.ts b/app/api/auth/callback/route.ts index fd8244e..cc0753b 100644 --- a/app/api/auth/callback/route.ts +++ b/app/api/auth/callback/route.ts @@ -3,6 +3,8 @@ import { cookies } from 'next/headers' import { KEYCLOAK_URLS, KEYCLOAK_CONFIG } from '@/lib/keycloak-config' import { supabase } from '@/lib/supabase' +export const dynamic = 'force-dynamic' + export async function GET(request: Request) { try { const { searchParams } = new URL(request.url) diff --git a/app/api/auth/check/route.ts b/app/api/auth/check/route.ts index 82dcdef..42cc5d3 100644 --- a/app/api/auth/check/route.ts +++ b/app/api/auth/check/route.ts @@ -2,6 +2,8 @@ import { NextResponse } from 'next/server' import { cookies } from 'next/headers' import { supabase } from '@/lib/supabase' +export const dynamic = 'force-dynamic' + export async function GET() { try { const accessToken = cookies().get('access_token')?.value diff --git a/app/api/auth/refresh/route.ts b/app/api/auth/refresh/route.ts index 04179ba..8c138e5 100644 --- a/app/api/auth/refresh/route.ts +++ b/app/api/auth/refresh/route.ts @@ -2,6 +2,8 @@ import { NextResponse } from 'next/server' import { cookies } from 'next/headers' import { supabase } from '@/lib/supabase' +export const dynamic = 'force-dynamic' + export async function GET() { try { const accessToken = cookies().get('access_token')?.value diff --git a/app/api/userinfo/route.ts b/app/api/userinfo/route.ts deleted file mode 100644 index 0519ecb..0000000 --- a/app/api/userinfo/route.ts +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/app/login/page.tsx b/app/login/page.tsx index 408566b..1db3025 100644 --- a/app/login/page.tsx +++ b/app/login/page.tsx @@ -1,5 +1,9 @@ "use client" +export const dynamic = 'force-dynamic' +export const runtime = 'edge' + + import { useEffect, useState } from 'react' import { useRouter, useSearchParams } from 'next/navigation' import { Button } from "@/components/ui/button"