Skip to content

Commit d0eecf9

Browse files
committed
test: deploying to test on staging env
1 parent 7b2c8d2 commit d0eecf9

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

demos/default/pages/getStaticProps/with-revalidate-404.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,15 @@ const Show = () => (
1212

1313
export async function getStaticProps(context) {
1414
const time = new Date().getMinutes() % 10 < 5
15-
// return {
16-
// redirect: time ? { destination: '/404', permanent: false} : undefined
17-
// }
18-
1915
return {
20-
props: {},
21-
// notFound: new Date().getMinutes() % 10 < 5,
22-
redirect: time ? { destination: '/404', permanent: true} : undefined,
23-
revalidate: 60,
16+
redirect: time ? { destination: '/404', permanent: false} : undefined
2417
}
18+
19+
// return {
20+
// props: {},
21+
// notFound: new Date().getMinutes() % 10 < 5,
22+
// revalidate: 60,
23+
// }
2524
}
2625

2726
export default Show

0 commit comments

Comments
 (0)