Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
3c984dc5
Unverified
Commit
3c984dc5
authored
Aug 02, 2021
by
Lee Robinson
Committed by
GitHub
Aug 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch with-fauna example. (#27701)
A few things I noticed when deploying the example.
parent
fe3f520d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
package.json
examples/with-fauna/package.json
+1
-1
index.js
examples/with-fauna/pages/index.js
+1
-0
No files found.
examples/with-fauna/package.json
View file @
3c984dc5
...
@@ -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"
},
},
...
...
examples/with-fauna/pages/index.js
View file @
3c984dc5
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment