diff --git a/src/pages/[id].astro b/src/pages/[id].astro index 2ecfab6..82d26f2 100644 --- a/src/pages/[id].astro +++ b/src/pages/[id].astro @@ -21,7 +21,7 @@ type Content = Omit; const { id } = Astro.params; -const res = await fetch(`http://localhost:4321/api/content?id=${id}`); +const res = await fetch(`${import.meta.env.HOME_URL}/api/content?id=${id}`); const data: Content | null = res.status === 200 ? await res.json() : null; ---