All checks were successful
forgejo/romanjaros/portfolio/pipeline/head This commit looks good
6 lines
No EOL
219 B
TypeScript
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();
|
|
} |