You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 04-frameworks/08-nextjs/04-static-site-generation/README.md
+10-43Lines changed: 10 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Pages are generated at build time, it means that it will fetch all necessary dat
29
29
- Recommended whenever possible because it's much faster than having server render the page on every request.
30
30
- The build time will be larger than SSR mode.
31
31
- Only available on `Server Components`.
32
-
-[More about static data fetching](https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic-rendering#static-data-fetching-default)
32
+
-[More about SSG](https://nextjs.org/docs/app/api-reference/file-conventions/route#static-generation-with-generatestaticparams)
33
33
34
34
We will fetch data from an API (`api-server`), so let's start this server on `start` command:
35
35
@@ -137,43 +137,6 @@ import classes from './layout.module.css';
What's if `api-server` has new data, let's use [Incremental Static Regeneration or Revalidating Data](https://nextjs.org/docs/app/building-your-application/data-fetching/revalidating):
338
+
What's if `api-server` has new data, let's use [Incremental Static Regeneration or Revalidating Data](https://nextjs.org/docs/app/guides/incremental-static-regeneration):
376
339
377
340
_./src/pods/car-list/api/car-list.api.ts_
378
341
@@ -414,7 +377,7 @@ export default CarListPage;
414
377
415
378
```
416
379
417
-
> It also have other [on-demand revalidation](https://nextjs.org/docs/app/building-your-application/data-fetching/incremental-static-regeneration#time-based-revalidation) options
380
+
> It also have other [on-demand revalidation](https://nextjs.org/docs/app/building-your-application/data-fetching/incremental-static-regeneration#time-based-revalidation) options
0 commit comments