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 7b2c8d2 commit d0eecf9Copy full SHA for d0eecf9
demos/default/pages/getStaticProps/with-revalidate-404.js
@@ -12,16 +12,15 @@ const Show = () => (
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: {},
21
- // notFound: new Date().getMinutes() % 10 < 5,
22
- redirect: time ? { destination: '/404', permanent: true} : undefined,
23
- revalidate: 60,
+ redirect: time ? { destination: '/404', permanent: false} : undefined
24
}
+
+ // return {
+ // props: {},
+ // notFound: new Date().getMinutes() % 10 < 5,
+ // revalidate: 60,
+ // }
25
26
27
export default Show
0 commit comments