Skip to content

Commit 1e3fccd

Browse files
committed
deleted revalidate because fallback false
1 parent 38dd76c commit 1e3fccd

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pages/articles/[id].js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ export async function getStaticProps({ params }) {
2020
const article = await fetcher(`${process.env.NEXT_PUBLIC_HCMS_API_URL}/articles/${params.id}`)
2121

2222
return {
23-
props: { params, article },
24-
revalidate: 10
23+
props: { params, article }
2524
}
2625
}
2726

pages/categories/[id].js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ export async function getStaticProps({ params }) {
2222
const category = await fetcher(`${process.env.NEXT_PUBLIC_HCMS_API_URL}/categories/${params.id}`)
2323

2424
return {
25-
props: { params, category },
26-
revalidate: 1
25+
props: { params, category }
2726
}
2827
}
2928

0 commit comments

Comments
 (0)