diff --git a/app/optimism-retropgf-3/page.tsx b/app/optimism-retropgf-3/page.tsx index 49f92625..4dc76261 100644 --- a/app/optimism-retropgf-3/page.tsx +++ b/app/optimism-retropgf-3/page.tsx @@ -5,8 +5,9 @@ const URL = ? `http://${process.env.NEXT_PUBLIC_VERCEL_URL}/api/optimism-retropgf-3/projects` : `/api/optimism-retropgf-3/projects`; -const getProjects = async (): Promise => { +const getProjects = async () => { console.log("URL", URL); + /* const res = await fetch(URL, { method: "GET", headers: { @@ -17,6 +18,8 @@ const getProjects = async (): Promise => { const data = await res.json(); return data; + */ + return null; }; export default async function RetroPGF3Projects() { diff --git a/app/page.tsx b/app/page.tsx index b4531697..2ac0ffb2 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -9,6 +9,12 @@ export async function generateMetadata(): Promise { }; } +const URL = + process.env.NEXT_PUBLIC_VERCEL_ENV === "development" + ? `http://${process.env.NEXT_PUBLIC_VERCEL_URL}/api/optimism-retropgf-3/projects` + : `/api/optimism-retropgf-3/projects`; + +console.log("URL", URL); export default function Page() { return ; }