diff --git a/src/app/page.tsx b/src/app/page.tsx index bf49cfb..4af9bd5 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -8,7 +8,7 @@ import {Job} from "./type"; export default async function Page() { - const res = await fetch("http://localhost:3000/jobs.json", {cache: "no-store"}) + const res = await fetch(`${process.env.NEXT_PUBLIC_SITE_URL}/jobs.json`, {cache: "no-store"}) const data: Job[] | undefined = await res?.json(); return (