fix: SITE_URL

This commit is contained in:
ner committed 2024-10-28 17:20:05 +02:00
1 parent 1fe912f4bd
commit dfdfb79169
66 files changed
+1352 -240

No files matched your search

+1 -1
View File
@@ -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;
+3 -1
View File
@@ -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}`
}
});
+4 -4
View File
@@ -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;