From a6cda16719a68f00e562e05a4051ad0200fc7418 Mon Sep 17 00:00:00 2001 From: youngvform Date: Sat, 23 Apr 2022 18:15:25 +0900 Subject: [PATCH] docs(get-static-paths): change getStaticProps to getStaticPaths --- docs/basic-features/data-fetching/get-static-paths.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/basic-features/data-fetching/get-static-paths.md b/docs/basic-features/data-fetching/get-static-paths.md index a5fa8d9c7453..3865dea07828 100644 --- a/docs/basic-features/data-fetching/get-static-paths.md +++ b/docs/basic-features/data-fetching/get-static-paths.md @@ -37,9 +37,9 @@ You should use `getStaticPaths` if you’re statically pre-rendering pages that `getStaticPaths` will only run during build in production, it will not be called during runtime. You can validate code written inside `getStaticPaths` is removed from the client-side bundle [with this tool](https://next-code-elimination.vercel.app/). -- `getStaticProps` runs during `next build` for any `paths` returned during build -- `getStaticProps` runs in the background when using `fallback: true` -- `getStaticProps` is called before initial render when using `fallback: blocking` +- `getStaticPaths` runs during `next build` for any `paths` returned during build +- `getStaticPaths` runs in the background when using `fallback: true` +- `getStaticPaths` is called before initial render when using `fallback: blocking` ## Where can I use getStaticPaths