disabled caching for fetch
All checks were successful
Vercel Production Deployment / Deploy-Production (push) Successful in 1m32s

This commit is contained in:
christian 2024-06-09 08:33:27 +02:00
parent 6392e689e3
commit a09fd394f5

View File

@ -21,10 +21,13 @@ interface JobPosting {
}
async function fetchJobs(): Promise<JobPosting[]> {
const response = await fetch("http://51.20.250.24/jobs");
const response = await fetch("http://51.20.250.24/jobs", {
cache: "no-cache",
});
if (!response.ok) {
throw new Error("Failed to fetch jobs");
}
revalidatePath("/");
return response.json();
}