From a57f65af70fbd8d057cae5cd8ff5c0b976c0a093 Mon Sep 17 00:00:00 2001 From: Joel Varty Date: Thu, 11 Jul 2024 13:55:15 -0400 Subject: [PATCH] time test --- app/[...slug]/page.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/[...slug]/page.tsx b/app/[...slug]/page.tsx index 6a84fbe..4813772 100644 --- a/app/[...slug]/page.tsx +++ b/app/[...slug]/page.tsx @@ -11,6 +11,7 @@ import { cacheConfig } from "lib/cms/cacheConfig" import { checkRedirect } from "lib/cms-content/checkRedirect" import { redirect, permanentRedirect } from "next/navigation" import { NextRequest } from "next/server" +import { DateTime } from "luxon" export const revalidate = cacheConfig.pathRevalidateDuration export const runtime = "nodejs" @@ -42,11 +43,14 @@ export default async function Page({ params, searchParams }: PageProps) { const AgilityPageTemplate = getPageTemplate(agilityData.pageTemplateName || "") + const dtStr = DateTime.now().toISO() + return (
+
Server time: {dtStr}
{AgilityPageTemplate && } {!AgilityPageTemplate && ( // if we don't have a template for this page, show an error