Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit 8dd2635

Browse files
committed
Bump next.js from 9.4.4 to 9.5.1
1 parent 4d0e1fe commit 8dd2635

36 files changed

+219
-179
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"is-hotkey": "^0.1.6",
3939
"lodash": "^4.17.15",
4040
"mitt": "^2.0.1",
41-
"next": "^9.4.4",
41+
"next": "^9.5.1",
4242
"next-offline": "^5.0.2",
4343
"react": "^16.13.1",
4444
"react-dnd": "^10.0.2",

src/pages/_document.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ class CustomDocument extends Document<CustomDocumentProps> {
4040
<Head>
4141
<meta charSet="utf-8" />
4242

43-
<meta
44-
name="viewport"
45-
content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no"
46-
/>
47-
4843
<link rel="manifest" href="/manifest.json" />
4944
<link rel="shortcut icon" href="/favicon.ico" />
5045
<link rel="apple-touch-icon" sizes="192x192" href="/icon-192.png" />

src/pages/books.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const limit = 10;
1616

1717
export const getStaticProps: GetStaticProps<BooksProps> = async () => {
1818
const data = await getPosts({ category: ['books'], limit });
19-
return { props: { data }, unstable_revalidate: 1 };
19+
return { props: { data }, revalidate: 1 };
2020
};
2121

2222
const Books = ({ data }: InferGetStaticPropsType<typeof getStaticProps>) => {

src/pages/chapters/[id]/edits.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const getStaticProps: GetStaticProps<ChapterEditsProps> = async ({
2424
}) => {
2525
const chapterId = String(params?.id);
2626
const data = await getActivities(limit, `chapters/${chapterId}`);
27-
return { props: { chapterId, data }, unstable_revalidate: 1 };
27+
return { props: { chapterId, data }, revalidate: 1 };
2828
};
2929

3030
const ChapterEdits = ({

src/pages/comments/[id].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const getStaticProps: GetStaticProps<CommentPageProps> = async ({
4747
replies = await getReplies(id);
4848
}
4949

50-
return { props: { comment, parent, replies }, unstable_revalidate: 1 };
50+
return { props: { comment, parent, replies }, revalidate: 1 };
5151
};
5252

5353
const CommentPage = ({

src/pages/comments/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface CommentsProps {
1313

1414
export const getStaticProps: GetStaticProps<CommentsProps> = async () => {
1515
const data = await getComments();
16-
return { props: { data }, unstable_revalidate: 1 };
16+
return { props: { data }, revalidate: 1 };
1717
};
1818

1919
const Comments = ({ data }: InferGetStaticPropsType<typeof getStaticProps>) => {

src/pages/courses.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const limit = 10;
1616

1717
export const getStaticProps: GetStaticProps<CoursesProps> = async () => {
1818
const data = await getPosts({ category: ['courses'], limit });
19-
return { props: { data }, unstable_revalidate: 1 };
19+
return { props: { data }, revalidate: 1 };
2020
};
2121

2222
const Courses = ({ data }: InferGetStaticPropsType<typeof getStaticProps>) => {

src/pages/edits/[id].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const getStaticPaths: GetStaticPaths = async () => {
2020
export const getStaticProps: GetStaticProps<EditProps> = async ({ params }) => {
2121
const id = String(params?.id);
2222
const data = await getActivity(id);
23-
return { props: { data }, unstable_revalidate: 1 };
23+
return { props: { data }, revalidate: 1 };
2424
};
2525

2626
const Edit = ({ data }: InferGetStaticPropsType<typeof getStaticProps>) => {

src/pages/edits/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface EditsProps {
1515

1616
export const getStaticProps: GetStaticProps<EditsProps> = async () => {
1717
const data = await getActivities(limit);
18-
return { props: { data }, unstable_revalidate: 1 };
18+
return { props: { data }, revalidate: 1 };
1919
};
2020

2121
const Edits = ({ data }: InferGetStaticPropsType<typeof getStaticProps>) => {

src/pages/examples.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const limit = 10;
1616

1717
export const getStaticProps: GetStaticProps<ExamplesProps> = async () => {
1818
const data = await getPosts({ category: ['examples'], limit });
19-
return { props: { data }, unstable_revalidate: 1 };
19+
return { props: { data }, revalidate: 1 };
2020
};
2121

2222
const Examples = ({ data }: InferGetStaticPropsType<typeof getStaticProps>) => {

0 commit comments

Comments
 (0)