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

+10
View File
@@ -0,0 +1,10 @@
import Http from './Http';
const BASE =
process.env.NEXT_PUBLIC_VERCEL_ENV === 'production'
? process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL
: process.env.NEXT_PUBLIC_VERCEL_URL;
const movieAdvisor = new Http(`${BASE?.startsWith('http') ? BASE : `https://${BASE}`}/api/tmdb`);
export default movieAdvisor;