diff --git a/src/app/[slug]/page.tsx b/src/app/[slug]/page.tsx index ab31357..5c488a5 100644 --- a/src/app/[slug]/page.tsx +++ b/src/app/[slug]/page.tsx @@ -1,6 +1,7 @@ import { Metadata, ResolvingMetadata } from 'next' import { notFound } from 'next/navigation' import meta from '../../../_content/meta.json' +import Header from '../../components/Header' import Project from '../../components/Project' import ProjectNav from '../../components/ProjectNav' import { @@ -44,6 +45,7 @@ export default async function ProjectPage({ params }: Props) { return ( <> +
diff --git a/src/app/__tests__/layout.test.tsx b/src/app/__tests__/layout.test.tsx index 89ae579..b2d0184 100644 --- a/src/app/__tests__/layout.test.tsx +++ b/src/app/__tests__/layout.test.tsx @@ -19,6 +19,6 @@ describe('app: /layout', () => { it('renders correctly', async () => { render(Hello) - await screen.findByText(dataLocation.now.city) + await screen.findByText('Hello') }) }) diff --git a/src/app/actions.ts b/src/app/actions.ts index c76f12f..b842ac3 100644 --- a/src/app/actions.ts +++ b/src/app/actions.ts @@ -5,7 +5,9 @@ import { GiphyFetch } from '@giphy/js-fetch-api' export async function getLocation() { try { - const response = await fetch('https://location.kretschmann.io') + const response = await fetch('https://location.kretschmann.io', { + cache: 'no-store' + }) if (!response.ok) throw new Error('Network response for location was not ok.') diff --git a/src/app/layout.tsx b/src/app/layout.tsx index b6b73cf..5194f3c 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,7 +3,6 @@ import { Metadata, Viewport } from 'next' import Script from 'next/script' import meta from '../../_content/meta.json' import Footer from '../components/Footer' -import Header from '../components/Header' import HostnameCheck from '../components/HostnameCheck' import ThemeSwitch from '../components/ThemeSwitch' import { UMAMI_SCRIPT_URL, UMAMI_WEBSITE_ID } from '../lib/umami' @@ -66,7 +65,6 @@ export default function RootLayout({ children }: { children: ReactNode }) { -
{children}