fix: authorization
This commit is contained in:
1 parent
a3fb95eca1
commit
fbbd7b52e3
7 files changed
+54
-36
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user