Skip to content

Commit a68b38b

Browse files
committed
[update] revalidate 設定
1 parent 1742641 commit a68b38b

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

app/layout.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ type Props = {
2222
children: React.ReactNode;
2323
};
2424

25-
export const revalidate = 0;
26-
2725
export default async function RootLayout({ children }: Props) {
2826
return (
2927
<html lang="ja">

app/page.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ import { getNewsList } from '@/libs/microcms';
33
import { TOP_NEWS_LIMIT } from '@/constants';
44
import NewsList from '@/components/NewsList';
55
import styles from './page.module.css';
6-
import Link from 'next/link';
76
import ButtonLink from '@/components/ButtonLink';
87

9-
export const revalidate = 0;
8+
export const revalidate = 60;
109

1110
export default async function Page() {
1211
const data = await getNewsList({

0 commit comments

Comments
 (0)