mirror of
https://github.com/OwethuManagedServices/oms-website-nextjs.git
synced 2025-12-17 18:58:10 +00:00
Compare commits
17 Commits
25-05-2025
...
8d40a10e02
| Author | SHA1 | Date | |
|---|---|---|---|
| 8d40a10e02 | |||
| 985c4b5a85 | |||
| 755eea55a4 | |||
| 8f828a374c | |||
| 3d5417852c | |||
| 0658c1ce28 | |||
| 7ba4ef1872 | |||
| 61ce1848d2 | |||
| 91e2f34a63 | |||
| be8a2fe95d | |||
| 6188a7ffbc | |||
| 25691d6a2e | |||
| b84b287dc1 | |||
| b1f701e55d | |||
| 6d2a8c1a59 | |||
| 2eb3e35cdb | |||
| b6bbf9b54d |
@ -12,7 +12,7 @@ interface ExtendedVacancy extends Vacancy {
|
||||
}
|
||||
|
||||
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",
|
||||
});
|
||||
if (!res.ok) {
|
||||
|
||||
@ -4,6 +4,7 @@ import "./globals.css";
|
||||
import Header from "@/components/Header";
|
||||
import Footer from "@/components/Footer";
|
||||
import { ThemeProvider } from "@/providers/theme-provider";
|
||||
import Script from "next/script";
|
||||
|
||||
const poppins = Poppins({
|
||||
subsets: ["latin"],
|
||||
@ -95,6 +96,14 @@ export default function RootLayout({
|
||||
<main>{children}</main>
|
||||
<Footer />
|
||||
</ThemeProvider>
|
||||
<Script
|
||||
src="https://umami.obse.africa/script.js"
|
||||
data-website-id={
|
||||
process.env.NEXT_PUBLIC_UMAMI_WEB_ID ||
|
||||
"d9f0e4d7-0f0a-45e4-91bf-62e0e65e25d2"
|
||||
}
|
||||
strategy="afterInteractive"
|
||||
/>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user