replaced URL

This commit is contained in:
libertyoms
2025-05-26 10:30:55 +02:00
parent 6d2a8c1a59
commit b1f701e55d

View File

@ -12,7 +12,7 @@ interface ExtendedVacancy extends Vacancy {
} }
async function getVacancy(slug: string): Promise<ExtendedVacancy | null> { async function getVacancy(slug: string): Promise<ExtendedVacancy | null> {
const res = await fetch(`http://localhost:3000/api/vacancies/${slug}`, { const res = await fetch(`${process.env.WEBSITE_URL}/api/vacancies/${slug}`, {
cache: "no-store", cache: "no-store",
}); });
if (!res.ok) { if (!res.ok) {