Skip to content

Commit

Permalink
Minor formatting fix in 02-static-site-generation.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
imageck committed Sep 2, 2023
1 parent 125605c commit 8548d44
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -108,7 +108,7 @@ However, which `id` you want to pre-render at build time might depend on externa

Later, you might add the second post with `id: 2`. Then you'd want to pre-render `posts/2` as well.

So your page **paths** that are pre-rendered depend on external data**.** To handle this, Next.js lets you `export` an `async` function called `getStaticPaths` from a dynamic page (`pages/posts/[id].js` in this case). This function gets called at build time and lets you specify which paths you want to pre-render.
So your page **paths** that are pre-rendered depend on external data. To handle this, Next.js lets you `export` an `async` function called `getStaticPaths` from a dynamic page (`pages/posts/[id].js` in this case). This function gets called at build time and lets you specify which paths you want to pre-render.

```jsx
// This function gets called at build time
Expand Down

0 comments on commit 8548d44

Please sign in to comment.