fix: SITE_URL
This commit is contained in:
1 parent
1fe912f4bd
commit
dfdfb79169
66 files changed
+1352
-240
No files matched your search
@@ -1,5 +1,7 @@
|
||||
import { NextRequest, NextResponse } from 'next/server';
|
||||
|
||||
import { MOVIE_DB_TOKEN } from '@/env';
|
||||
|
||||
type TMDBParams = {
|
||||
params: {
|
||||
path: string[];
|
||||
@@ -11,7 +13,7 @@ export async function GET({ nextUrl: { searchParams } }: NextRequest, { params:
|
||||
const response = await fetch(`https://api.themoviedb.org/3/${path.join('/')}?${searchParams.toString()}`, {
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: `Bearer ${process.env.MOVIE_DB_TOKEN}`
|
||||
Authorization: `Bearer ${MOVIE_DB_TOKEN}`
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user