Skip to content

Commit

Permalink
force dynamic export added
Browse files Browse the repository at this point in the history
  • Loading branch information
aliirz committed Nov 13, 2024
1 parent 1b9fd9e commit 1056141
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/api/auth/authorize/route.ts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 2 additions & 0 deletions app/api/auth/callback/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions app/api/auth/check/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions app/api/auth/refresh/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion app/api/userinfo/route.ts

This file was deleted.

4 changes: 4 additions & 0 deletions app/login/page.tsx
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 1056141

Please sign in to comment.