getStaticPaths() + getStaticProps()

The page is created statically at build times using getStaticProps() and getStaticPaths().This site has a dynamic route to each user. getStaticPath() returns an array of all valid paths. This array is passed to getStaticProps() which performs data fetching and build all pages for the paths during build time.

So finally for one dynamic path, we can generate all the valid pages with specific data during build time.

User Information

Nicholas Runolfsdottir V

Sherwood@rosamond.me

586.493.6943 x140

Maxime_Nienow

jacynthe.com

Aliyaview

Go back