In this video we talk about getStaticPaths in NextJS. If a page has dynamic routes (documentation) and uses getStaticProps it needs to define a list of paths that have to be rendered to HTML at build time.
If you export an async function called getStaticPaths from a page that uses dynamic routes, Next.js will statically pre-render all the paths specified by getStaticPaths.
Social media dashboard GitHub: https://github.com/bjcarlson42/nextjs...
NextJS website: https://nextjs.org/
Docs: https://nextjs.org/docs/basic-feature...
Code in video: https://github.com/bjcarlson42/youtub...
NextJS Crash Course Video Outline:
Playlist: • Introduction To NextJS
Course Intro - • NextJS Course Introduction | NextJS Crash ...
What is Next.js? - • What Is NextJS? | NextJS Crash Course
Pages, CSS, Static Files - • NextJS Pages, CSS, Static Files | NextJS C...
getInitialProps - • getInitialProps Data Fetching | NextJS Cra...
getStaticProps - • getStaticProps Data Fetching | NextJS Cras...
getStaticPaths - • getStaticPaths Data Fetching | NextJS Cras... ⬅️⬅️⬅️ You are here
getServerSideProps - • getServerSideProps Data Fetching | NextJS ...
YouTube API - • YouTube API | NextJS Crash Course
GitHub API - • GitHub API | NextJS Crash Course
Strava API - • Strava API | NextJS Crash Course
Deploying On Vercel - • Deploy NextJS With Vercel With Custom Doma...
✍️ Join my newsletter!! https://buttondown.email/benjamincarlson ✍️
I send out one email the first day of every month with new YouTube videos, Medium posts, stuff I’ve been working on, and anything else programming related I’ve found interesting.
🎒 My Gear 🎒
View my tech, camera, and productivity gear: https://benjamincarlson.io/gear
CONTACT: [email protected]
📧 Connect with me 📧
Website: https://benjamincarlson.io
Instagram: / benscstutorials
Twitter: / benscstutorials
Github: https://github.com/bjcarlson42
LinkedIn: / bjcarlson42
Medium: / benjamincarlson
#nextjs