fix: SITE_URL
This commit is contained in:
1 parent
1fe912f4bd
commit
dfdfb79169
66 files changed
+1352
-240
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { NextRequest, NextResponse } from 'next/server';
|
||||
|
||||
import tlk from '@/api/parsers/tlk';
|
||||
import tlk from '@/data/parsers/tlk';
|
||||
|
||||
export async function GET({ nextUrl: { searchParams } }: NextRequest) {
|
||||
const url = searchParams.get('url') as string;
|
||||
|
||||
@@ -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}`
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { NextRequest, NextResponse } from 'next/server';
|
||||
|
||||
import { Sort } from '@/api/parsers';
|
||||
import tlk from '@/api/parsers/tlk';
|
||||
import tpb from '@/api/parsers/tpb';
|
||||
import yts from '@/api/parsers/yts';
|
||||
import { Sort } from '@/data/parsers';
|
||||
import tlk from '@/data/parsers/tlk';
|
||||
import tpb from '@/data/parsers/tpb';
|
||||
import yts from '@/data/parsers/yts';
|
||||
|
||||
export async function GET({ nextUrl: { searchParams } }: NextRequest) {
|
||||
const key = searchParams.get('key') as keyof typeof providers;
|
||||
|
||||
Reference in new issue
Block a user