From 9ba13d116062feed94ecb79710d8db0c4df06beb Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 22 Apr 2024 14:21:09 +0100 Subject: [PATCH] testing the test --- src/app/(pages)/player/[[...id]]/page.tsx | 14 ++++++++------ .../server/[platform]/[[...hostname]]/page.tsx | 5 +---- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/app/(pages)/player/[[...id]]/page.tsx b/src/app/(pages)/player/[[...id]]/page.tsx index 37d7966..50a42ef 100644 --- a/src/app/(pages)/player/[[...id]]/page.tsx +++ b/src/app/(pages)/player/[[...id]]/page.tsx @@ -13,10 +13,7 @@ import { Metadata, Viewport } from "next"; import { ReactElement } from "react"; import { Title } from "@/app/components/title"; -/** - * Force the page to be dynamic, so it will be regenerated on every request - */ -export const revalidate = 0; +export const revalidate = 60; type Params = { params: { @@ -24,6 +21,11 @@ type Params = { }; }; +export async function getData(id: string): Promise { + console.log("called"); + return getPlayer(id); +} + export async function generateViewport({ params: { id } }: Params): Promise { const validPlayer = await isValidPlayer(id); return { @@ -41,7 +43,7 @@ export async function generateMetadata({ params: { id } }: Params): Promise