maybe fix build errors

This commit is contained in:
liquidwater0 2025-04-03 01:34:25 -05:00 committed by Quaternions
parent c9212a5ec8
commit edc1ed5459
2 changed files with 11 additions and 7 deletions
web/src/app/maps

@ -2,16 +2,16 @@ import Webpage from "@/app/_components/webpage";
interface MapParams {
params: {
mapid: string;
mapId: string;
};
}
export default function Map({ params }: MapParams) {
const { mapid } = params;
const { mapId } = params;
return (
<Webpage>
<p>map { mapid }</p>
<p>map { mapId }</p>
</Webpage>
);
}

@ -1,12 +1,16 @@
import Webpage from "@/app/_components/webpage";
export default async function MapsPage() {
const ingameMaps = fetch("/api/maps?Page=1&Limit=10");
try {
console.log(ingameMaps);
const response = await fetch("/api/maps?Page=1&Limit=10");
const json = await response.json();
console.log(json);
} catch(error) {
console.log(error);
return (
<Webpage>
<h1>No Maps!</h1>
</Webpage>
)
}
return (