disabled caching for fetch
All checks were successful
Vercel Production Deployment / Deploy-Production (push) Successful in 1m32s
All checks were successful
Vercel Production Deployment / Deploy-Production (push) Successful in 1m32s
This commit is contained in:
parent
6392e689e3
commit
a09fd394f5
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user