Skip to content

Commit

Permalink
time test
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvarty committed Jul 11, 2024
1 parent 1807196 commit a57f65a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -42,11 +43,14 @@ export default async function Page({ params, searchParams }: PageProps) {

const AgilityPageTemplate = getPageTemplate(agilityData.pageTemplateName || "")

const dtStr = DateTime.now().toISO()

return (
<div
data-agility-page={agilityData.page?.pageID}
data-agility-dynamic-content={agilityData.sitemapNode.contentID}
>
<div>Server time: {dtStr}</div>
{AgilityPageTemplate && <AgilityPageTemplate {...agilityData} />}
{!AgilityPageTemplate && (
// if we don't have a template for this page, show an error
Expand Down

0 comments on commit a57f65a

Please sign in to comment.