From 6a22695adc00d307bd0c33865fb91b98662c9fef Mon Sep 17 00:00:00 2001 From: Manish Gupta Date: Thu, 16 Nov 2023 23:31:38 -0800 Subject: [PATCH] WIP: debugging --- app/optimism-retropgf-3/page.tsx | 5 ++++- app/page.tsx | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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 ; }