Skip to content

Commit f7958dc

Browse files
committed
add screenshot and incremental static regen
1 parent affe4e3 commit f7958dc

File tree

5 files changed

+29
-4
lines changed

5 files changed

+29
-4
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Next.js basics
22

3-
This repo is made of 3 projects:
3+
This repo is made of 4 projects:
44

55
1. [**Batman App**](#batman): A web app about Batman TV Shows to understand Next.js basics.
66
2. [**Blog App**](#blog): A very simple blog app.
77
3. [**Game Vibes**](#gamevibes): A quick project using Netlify Identity with Next.js.
8+
4. [**Marmite**](#marmite): A small recipe app combining Next.js with Contentful.
89

910
## <a name="batman"></a>1) Batman app
1011

@@ -81,3 +82,25 @@ A quick project using Netlify Identity with Next.js.
8182
- enabling Google and GitHub as auth providers.
8283

8384
Based on [Next.js & Identity (auth) Tutorial](https://www.youtube.com/watch?v=IM7a6BxNof8&list=PL4cUxeGkcC9ig-veuRaLI4QB0Ws8xMzjv) by Shaun Pelling - The Net Ninja (2021).
85+
86+
## <a name="marmite"></a>4) Marmite
87+
88+
A small recipe app combining Next.js with Contentful.
89+
90+
[See marmite folder](https://github.com/solygambas/next-batman/tree/master/marmite)
91+
92+
## Demo
93+
94+
[See Demo deployed on Vercel](https://justaddmarmite.vercel.app/)
95+
96+
<p align="center">
97+
<a href="https://github.com/solygambas/next-batman/tree/master/marmite">
98+
<img src="marmite/screenshot.png">
99+
</a>
100+
</p>
101+
102+
## Features
103+
104+
-
105+
106+
Based on [Next.js & Contentful Site Build Tutorial](https://www.youtube.com/watch?v=m9mNsYJbkNg) by Shaun Pelling - The Net Ninja (2021).

marmite/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Marmite
22

3-
...
3+
A small recipe app combining Next.js with Contentful.
44

55
## Demo
66

7-
[See Demo deployed on Vercel](#)
7+
[See Demo deployed on Vercel](https://justaddmarmite.vercel.app/)
88

99
<p align="center">
10-
<!-- <img src="screenshot.png"> -->
10+
<img src="screenshot.png">
1111
</p>
1212

1313
## Features

marmite/pages/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export async function getStaticProps() {
1111
return {
1212
props: {
1313
recipes: res.items,
14+
revalidate: 1, // incremental static regeneration
1415
},
1516
};
1617
}

marmite/pages/recipes/[slug].js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export async function getStaticProps({ params }) {
2525
return {
2626
props: {
2727
recipe: items[0],
28+
revalidate: 1, // incremental static regeneration
2829
},
2930
};
3031
}

marmite/screenshot.png

226 KB
Loading

0 commit comments

Comments
 (0)