Skip to content

Commit

Permalink
chore(frontend): increase revalidate time
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-h1 committed Jan 1, 2025
1 parent a36e49b commit 0c3098b
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/app/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Image from 'next/image';
import Link from 'next/link';
import { notFound } from 'next/navigation';

export const revalidate = 1800;
export const revalidate = 3600;

interface Props {
params: Promise<{
Expand Down
2 changes: 1 addition & 1 deletion src/app/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Metadata } from 'next';
import { Suspense } from 'react';
import PostsClient from './page.client';

export const revalidate = 1800;
export const revalidate = 3600;

export const metadata: Metadata = {
title: 'Blog',
Expand Down
2 changes: 1 addition & 1 deletion src/app/blog/tags/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface Props {
}>;
}

export const revalidate = 1800;
export const revalidate = 3600;

export default async function TagPage({ params }: Props) {
const { slug } = await params;
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import dynamic from 'next/dynamic';

const WorkItem = dynamic(() => import('@frontend/components/WorkItem'));

export const revalidate = 1800;
export const revalidate = 3600;

export const metadata: Metadata = {
title: 'Home | lhowsam.com',
Expand Down
2 changes: 1 addition & 1 deletion src/app/projects/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface Props {
}>;
}

export const revalidate = 1800;
export const revalidate = 3600;

export default async function ProjectPage({ params }: Props) {
const { slug } = await params;
Expand Down
2 changes: 1 addition & 1 deletion src/app/projects/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Text from '@frontend/components/Text';
import projectService from '@frontend/services/projectService';
import { Metadata } from 'next';

export const revalidate = 1800;
export const revalidate = 3600;

export const metadata: Metadata = {
title: 'Projects',
Expand Down
2 changes: 1 addition & 1 deletion src/app/work/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface Props {
}>;
}

export const revalidate = 1800;
export const revalidate = 3600;

export default async function WorkSlugPage({ params }: Props) {
const { slug } = await params;
Expand Down
2 changes: 1 addition & 1 deletion src/config/site.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const siteConfig = {
name: 'lhowsam.com',
description: 'Luke Howsam - Software Developer - my website',
defaultRevalidate: 1800, // 30 minutes
defaultRevalidate: 3600, // 30 minutes
keywords: [
'Luke Howsam',
'Developer',
Expand Down

0 comments on commit 0c3098b

Please sign in to comment.