portfolio/src/app/fetch.ts
Roman Jaroš f16f36ec92
All checks were successful
forgejo/romanjaros/portfolio/pipeline/head This commit looks good
Refactor and enhance job-related components and context.
2025-01-15 16:14:26 +00:00

6 lines
No EOL
219 B
TypeScript

import {Job} from "./type";
export const fetchJobs = async (): Promise<Job[] | undefined> => {
const res = await fetch(`${process.env.NEXT_PUBLIC_SITE_URL}/jobs.json`, {cache: "no-store"})
return await res?.json();
}