From b1f701e55d06ad9b4202e156fa7de9b372c17382 Mon Sep 17 00:00:00 2001 From: libertyoms Date: Mon, 26 May 2025 10:30:55 +0200 Subject: [PATCH] replaced URL --- app/(website)/vacancies/[slug]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/(website)/vacancies/[slug]/page.tsx b/app/(website)/vacancies/[slug]/page.tsx index 91bbcb5..bc0f12f 100644 --- a/app/(website)/vacancies/[slug]/page.tsx +++ b/app/(website)/vacancies/[slug]/page.tsx @@ -12,7 +12,7 @@ interface ExtendedVacancy extends Vacancy { } async function getVacancy(slug: string): Promise { - const res = await fetch(`http://localhost:3000/api/vacancies/${slug}`, { + const res = await fetch(`${process.env.WEBSITE_URL}/api/vacancies/${slug}`, { cache: "no-store", }); if (!res.ok) {