no store for jobs fetch
All checks were successful
Vercel Production Deployment / Deploy-Production (push) Successful in 1m44s

This commit is contained in:
christian 2024-06-19 20:33:59 +02:00
parent ec7896ea8c
commit 0fb22f5647
2 changed files with 6 additions and 2 deletions

View File

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

View File

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