From ab4cdb1207e2734ddfa15caea878ae7ce60740f9 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Fri, 12 May 2023 15:21:15 -0400 Subject: [PATCH] Revalidate all pages --- src/app/contact/page.tsx | 2 ++ src/app/layout.tsx | 4 ++-- src/app/roles/[slug]/page.tsx | 2 ++ src/app/roles/page.tsx | 2 ++ src/app/work/[slug]/page.tsx | 2 ++ 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx index 00561ea..31a4d8f 100644 --- a/src/app/contact/page.tsx +++ b/src/app/contact/page.tsx @@ -33,3 +33,5 @@ export default async function ContactPage() { ); } + +export const revalidate = 60; diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 02d0085..e740fea 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -46,11 +46,11 @@ export default function RootLayout({ ); } -export const revalidate = 60; - export const metadata = { title: { template: '%s | JumboCode', default: 'JumboCode', }, }; + +export const revalidate = 60; diff --git a/src/app/roles/[slug]/page.tsx b/src/app/roles/[slug]/page.tsx index 157fe9d..f79c68d 100644 --- a/src/app/roles/[slug]/page.tsx +++ b/src/app/roles/[slug]/page.tsx @@ -68,3 +68,5 @@ export async function generateStaticParams() { slug: role.fields.slug, })); } + +export const revalidate = 60; diff --git a/src/app/roles/page.tsx b/src/app/roles/page.tsx index 349a989..73c7dc9 100644 --- a/src/app/roles/page.tsx +++ b/src/app/roles/page.tsx @@ -68,3 +68,5 @@ export default async function RolesListPage() { ); } + +export const revalidate = 60; diff --git a/src/app/work/[slug]/page.tsx b/src/app/work/[slug]/page.tsx index 06d0fb2..f231a0f 100644 --- a/src/app/work/[slug]/page.tsx +++ b/src/app/work/[slug]/page.tsx @@ -82,3 +82,5 @@ export async function generateStaticParams() { slug: caseStudy.fields.slug, })); } + +export const revalidate = 60;