Unverified Commit 3c984dc5 authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

Patch with-fauna example. (#27701)

A few things I noticed when deploying the example.
parent fe3f520d
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"description": "Guestbook example with Next.js and Fauna.", "description": "Guestbook example with Next.js and Fauna.",
"scripts": { "scripts": {
"dev": "next", "dev": "next",
"build": "yarn setup && next build", "build": "next build",
"start": "next start", "start": "next start",
"setup": "node ./scripts/setup.js" "setup": "node ./scripts/setup.js"
}, },
......
...@@ -176,6 +176,7 @@ export const getStaticProps = async () => ({ ...@@ -176,6 +176,7 @@ export const getStaticProps = async () => ({
props: { props: {
initialEntries: await listGuestbookEntries(), initialEntries: await listGuestbookEntries(),
}, },
revalidate: 1,
}) })
export default Guestbook export default Guestbook
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment