We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fb25ea commit 7b2c8d2Copy full SHA for 7b2c8d2
demos/default/pages/getStaticProps/with-revalidate-404.js
@@ -11,9 +11,15 @@ const Show = () => (
11
)
12
13
export async function getStaticProps(context) {
14
+ const time = new Date().getMinutes() % 10 < 5
15
+ // return {
16
+ // redirect: time ? { destination: '/404', permanent: false} : undefined
17
+ // }
18
+
19
return {
20
props: {},
- notFound: new Date().getMinutes() % 10 < 5,
21
+ // notFound: new Date().getMinutes() % 10 < 5,
22
+ redirect: time ? { destination: '/404', permanent: true} : undefined,
23
revalidate: 60,
24
}
25
0 commit comments