Skip to content

Commit

Permalink
Revalidate all pages
Browse files Browse the repository at this point in the history
  • Loading branch information
controversial committed May 12, 2023
1 parent c579656 commit ab4cdb1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/app/contact/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ export default async function ContactPage() {
</div>
);
}

export const revalidate = 60;
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 2 additions & 0 deletions src/app/roles/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@ export async function generateStaticParams() {
slug: role.fields.slug,
}));
}

export const revalidate = 60;
2 changes: 2 additions & 0 deletions src/app/roles/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@ export default async function RolesListPage() {
</div>
);
}

export const revalidate = 60;
2 changes: 2 additions & 0 deletions src/app/work/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,5 @@ export async function generateStaticParams() {
slug: caseStudy.fields.slug,
}));
}

export const revalidate = 60;

0 comments on commit ab4cdb1

Please sign in to comment.