Next.js Tutorial #17 GetStaticPaths with Dynamic , Catch All Routing

Опубликовано: 12 Октябрь 2024
на канале: DATAHACKS
206
0

Next.js Tutorial #17 GetStaticPaths with Dynamic , Catch All routing

In this we are going to learn about getstaticpaths. If a page has Dynamic Routes and uses getStaticProps, it needs to define a list of paths to be statically generated.When you export a function called getStaticPaths (Static Site Generation) from a page that uses dynamic routes, Next.js will statically pre-render all the paths specified by getStaticPaths.

Pre-Rendering =    • Next.js Tutorial #12 Pre-Rendering In...  
Static Generation =   • Next.js Tutorial #13 Static Generation  
getStaiticprops for Static Page=    • Next.js Tutorial #14 Static page with...  
getStaticProps =    • Next.js Tutorial #15 Dynamic Pages wi...  
getstaticpaths =    • Next.js Tutorial #16 GetStaticPaths f...  

Time Stamps
0:00 = Introduction
1:10 = Dynamic Routing
4:38 = Catch All Routing

#nextjs #nextjs13 #nextjstutorial #DATAHACKS