mirror of
https://github.com/OwethuManagedServices/oms-website-nextjs.git
synced 2025-12-17 18:58:10 +00:00
replaced URL
This commit is contained in:
@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user