Skip to content

Commit bf3f8d9

Browse files
committed
chore: add time to page for testing
1 parent 796e458 commit bf3f8d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import Link from 'next/link'
22

3-
const Show = ({ show }) => (
3+
const Show = ({ show, time }) => (
44
<div>
5-
<p>This page uses getStaticProps() to pre-fetch a TV show.</p>
5+
<p>This page uses getStaticProps() to pre-fetch a TV show at {time}</p>
66

77
<hr />
88

@@ -22,6 +22,7 @@ export async function getStaticProps(context) {
2222
return {
2323
props: {
2424
show: data,
25+
time: new Date().toISOString(),
2526
},
2627
// ODB handler will use the minimum TTL=60s
2728
revalidate: 300,

0 commit comments

Comments
 (0)