Skip to content

Commit 9e47ca9

Browse files
committed
fix incremental static regen
1 parent f7958dc commit 9e47ca9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ A small recipe app combining Next.js with Contentful.
103103

104104
-
105105

106-
Based on [Next.js & Contentful Site Build Tutorial](https://www.youtube.com/watch?v=m9mNsYJbkNg) by Shaun Pelling - The Net Ninja (2021).
106+
Based on [Next.js & Contentful Site Build Tutorial](https://www.youtube.com/watch?v=m9mNsYJbkNg&list=PL4cUxeGkcC9jClk8wl1yJcN3Zlrr8YSA1) by Shaun Pelling - The Net Ninja (2021).

marmite/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ A small recipe app combining Next.js with Contentful.
1414

1515
-
1616

17-
Based on [Next.js & Contentful Site Build Tutorial](https://www.youtube.com/watch?v=m9mNsYJbkNg) by Shaun Pelling - The Net Ninja (2021).
17+
Based on [Next.js & Contentful Site Build Tutorial](https://www.youtube.com/watch?v=m9mNsYJbkNg&list=PL4cUxeGkcC9jClk8wl1yJcN3Zlrr8YSA1) by Shaun Pelling - The Net Ninja (2021).

marmite/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export async function getStaticProps() {
1111
return {
1212
props: {
1313
recipes: res.items,
14-
revalidate: 1, // incremental static regeneration
1514
},
15+
revalidate: 1, // incremental static regeneration
1616
};
1717
}
1818

marmite/pages/recipes/[slug].js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export async function getStaticProps({ params }) {
2525
return {
2626
props: {
2727
recipe: items[0],
28-
revalidate: 1, // incremental static regeneration
2928
},
29+
revalidate: 1, // incremental static regeneration
3030
};
3131
}
3232

0 commit comments

Comments
 (0)