Skip to content

Commit 3c984dc

Browse files
authored
Patch with-fauna example. (#27701)
A few things I noticed when deploying the example.
1 parent fe3f520 commit 3c984dc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/with-fauna/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Guestbook example with Next.js and Fauna.",
66
"scripts": {
77
"dev": "next",
8-
"build": "yarn setup && next build",
8+
"build": "next build",
99
"start": "next start",
1010
"setup": "node ./scripts/setup.js"
1111
},

examples/with-fauna/pages/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ export const getStaticProps = async () => ({
176176
props: {
177177
initialEntries: await listGuestbookEntries(),
178178
},
179+
revalidate: 1,
179180
})
180181

181182
export default Guestbook

0 commit comments

Comments
 (0)