Skip to content

Commit

Permalink
WIP: debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
manishiwa committed Nov 17, 2023
1 parent da1685b commit 6a22695
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/optimism-retropgf-3/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<ProjectsResponse> => {
const getProjects = async () => {
console.log("URL", URL);
/*
const res = await fetch(URL, {
method: "GET",
headers: {
Expand All @@ -17,6 +18,8 @@ const getProjects = async (): Promise<ProjectsResponse> => {
const data = await res.json();
return data;
*/
return null;
};

export default async function RetroPGF3Projects() {
Expand Down
6 changes: 6 additions & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ export async function generateMetadata(): Promise<Metadata> {
};
}

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 <Home />;
}

0 comments on commit 6a22695

Please sign in to comment.