fix: authorization

This commit is contained in:
ner committed 2024-11-11 19:32:52 +02:00
1 parent a3fb95eca1
commit fbbd7b52e3
7 files changed
+54 -36

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ export async function GET({ nextUrl: { searchParams } }: NextRequest, { params:
'Content-Type': 'application/json',
Authorization: `Bearer ${MOVIE_DB_TOKEN}`
},
next: searchParams.get('session_id') ? undefined : { revalidate: 3600 }
next: searchParams.get('preventCache') || searchParams.get('session_id') ? undefined : { revalidate: 3600 }
});
if (!response.ok) {