fix: remove ue code

This commit is contained in:
TrèsAbhi committed 2025-12-27 18:50:14 -06:00
1 parent fe68ebf450
commit 6a280982d0
1 file changed
-21
@@ -1,21 +0,0 @@
---
import type { GetStaticPaths } from "astro";
import { api } from "../../../core/api/dynamic";
export const getStaticPaths = (async () => {
const { tanks } = await api.tanks();
return tanks.map((tank) => ({
params: { slug: tank.slug },
props: { id: tank.id },
}));
}) satisfies GetStaticPaths;
const { id } = Astro.props;
---
<h1>Tank {id}</h1>
<code>
<pre>{JSON.stringify(await api.tank(id), null, 2)}</pre>
</code>