Skip to content

Commit

Permalink
actually fix game page
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBeardEth committed Nov 11, 2023
1 parent 6fde89e commit 3f79a3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/nextjs/src/app/api/subgraph/getRealms/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Realm } from "@/types";
import { NextResponse } from "next/server";

export const runtime = "edge";
Expand Down
4 changes: 2 additions & 2 deletions apps/nextjs/src/app/games/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export async function generateMetadata({
export default async function Page({ params }: { params: { id: string } }) {
const game = games.find((game) => game.id === params.id);

const dirRelativeToPublicFolder = `games/${params.id}/screenshots`;
/* const dirRelativeToPublicFolder = `games/${params.id}/screenshots`;
const dir = path.resolve("public", dirRelativeToPublicFolder);
const screenshotFiles = await fs.readdir(path.join(dir));
const screenshotList = screenshotFiles.map((image, index) => ({
src: `/games/${params.id}/screenshots/${image}`,
alt: `${game?.name} Screenshot ${index}`,
}));
}));*/ //TODO not working in Vercel production

const tabs = [
{
Expand Down

0 comments on commit 3f79a3c

Please sign in to comment.