Next.js Pages Router Tutorial: Routing to Authentication (Codevolution)
By Codevolution
- Course audio
- Course audio: English
- Level
- Intermediate
- Length
- 79 lessons · 8.5 hours
What you'll be able to do
- Set up static, dynamic and nested routes in Next.js
- Choose between static generation and server-side rendering
- Create API routes for GET, POST and DELETE requests
- Add NextAuth authentication and deploy to Vercel
About this course
A 79-lesson English Next.js course from Codevolution, about 8.5 hours, built around the Pages Router. It opens with project structure, then a routing section: nested, dynamic and catch-all routes, the Link component, programmatic navigation and a custom 404 page. Pre-rendering is the longest part, taking in static generation with getStaticProps and getStaticPaths, the fallback options, incremental static regeneration, server-side rendering with getServerSideProps and client-side fetching with SWR. API routes cover GET, POST, DELETE and dynamic handlers. After a styling section, the course finishes with authentication using NextAuth, securing pages and API routes on client and server, connecting a database and deploying to Vercel. Learners should know React first.
Before you start: React fundamentals; JavaScript basics
Syllabus
79 lessons · 8:27:47 in total
- 1Next.js Tutorial - 1 - Introduction6:46
- 2Next.js Tutorial - 2 - Hello World3:29
- 3Next.js Tutorial - 3 - Project Structure10:42
- 4Next.js Tutorial - 4 - Routing Section Intro2:34
- 5Next.js Tutorial - 5 - Routing with Pages6:01
- 6Next.js Tutorial - 6 - Nested Routes5:18
- 7Next.js Tutorial - 7 - Dynamic Routes10:21
- 8Next.js Tutorial - 8 - Nested Dynamic Routes5:08
- 9Next.js Tutorial - 9 - Catch All Routes11:16
- 10Next.js Tutorial - 10 - Link Component Navigation9:03
- 11Next.js Tutorial - 11 - Navigating Programmatically4:05
- 12Next.js Tutorial - 12 - Custom 404 Page2:37
- 13Next.js Tutorial - 13 - Routing Summary1:57
- 14Next.js Tutorial - 14 - Pre-rendering and Data Fetching Section Intro2:01
- 15Next.js Tutorial - 15 - Pre-rendering8:17
- 16Next.js Tutorial - 16 - Static Generation6:06
- 17Next.js Tutorial - 17 - Static Generation with getStaticProps8:33
- 18Next.js Tutorial - 18 - Pages vs Components4:01
- 19Next.js Tutorial - 19 - More on getStaticProps3:44
- 20Next.js Tutorial - 20 - Inspecting Static Generation Builds10:46
- 21Next.js Tutorial - 21 - Running Static Generation Builds9:49
- 22Next.js Tutorial - 22 - SSG with Dynamic Parameters12:46
- 23Next.js Tutorial - 23 - SSG with getStaticPaths6:01
- 24Next.js Tutorial - 24 - Inspecting getStaticPaths Builds6:24
- 25Next.js Tutorial - 25 - Fetching Paths for getStaticPaths6:17
- 26Next.js Tutorial - 26 - getStaticPaths fallback false6:45
- 27Next.js Tutorial - 27 - getStaticPaths fallback true19:36
- 28Next.js Tutorial - 28 - getStaticPaths fallback blocking6:28
- 29Next.js Tutorial - 29 - Incremental Static Regeneration17:57
- 30Next.js Tutorial - 30 - Inspecting ISR Builds16:46
Show all 79 lessons
- 31Next.js Tutorial - 31 - Server-side Rendering6:24
- 32Next.js Tutorial - 32 - SSR with getServerSideProps9:39
- 33Next.js Tutorial - 33 - SSR with Dynamic Parameters6:47
- 34Next.js Tutorial - 34 - getServerSideProps context5:31
- 35Next.js Tutorial - 35 - Inspecting SSR Builds3:37
- 36Next.js Tutorial - 36 - Client-side Data Fetching8:01
- 37Next.js Tutorial - 37 - SWR for Client-side Data Fetching5:47
- 38Next.js Tutorial - 38 - Pre rendering + Client side Data Fetching15:55
- 39Next.js Tutorial - 39 - Pre-rendering & Data Fetching Summary3:40
- 40Next.js Tutorial - 40 - API Routes Section Intro1:17
- 41Next.js Tutorial - 41 - API Routes8:01
- 42Next.js Tutorial - 42 - API GET Request6:29
- 43Next.js Tutorial - 43 - API POST Request7:31
- 44Next.js Tutorial - 44 - Dynamic API Routes5:01
- 45Next.js Tutorial - 45 - API DELETE Request5:23
- 46Next.js Tutorial - 46 - Catch All API Routes4:45
- 47Next.js Tutorial - 47 - APIs and Pre-rendering6:49
- 48Next.js Tutorial - 48 - API Routes Summary1:49
- 49Next.js Tutorial - 49 - Styling Section Intro0:54
- 50Next.js Tutorial - 50 - Global Styles4:48
- 51Next.js Tutorial - 51 - Component Level Styles4:54
- 52Next.js Tutorial - 52 - SASS Support4:01
- 53Next.js Tutorial - 53 - CSS in JS4:21
- 54Next.js Tutorial - 54 - Styling Summary1:53
- 55Next.js Tutorial - 55 - Miscellaneous Section Intro1:36
- 56Next.js Tutorial - 56 - App Layout7:09
- 57Next.js Tutorial - 57 - Head Component6:20
- 58Next.js Tutorial - 58 - Image Component10:06
- 59Next.js Tutorial - 59 - Absolute Imports & Module Paths3:44
- 60Next.js Tutorial - 60 - Static HTML Export6:46
- 61Next.js Tutorial - 61 - TypeScript Support4:47
- 62Next.js Tutorial - 62 - Preview Mode14:23
- 63Next.js Tutorial - 63 - Redirects5:01
- 64Next.js Tutorial - 64 - Environment Variables5:51
- 65Next.js Tutorial - 65 - Miscellaneous Summary2:10
- 66Next.js Tutorial - 66 - Authentication Section Intro1:15
- 67Next.js Tutorial - 67 - Authentication in Next.js3:06
- 68Next.js Tutorial - 68 - NextAuth Setup8:24
- 69Next.js Tutorial - 69 - Sign In and Sign Out4:11
- 70Next.js Tutorial - 70 - Client-side Authentication5:36
- 71Next.js Tutorial - 71 - Securing Pages Client-side6:51
- 72Next.js Tutorial - 72 - NextAuth Provider7:16
- 73Next.js Tutorial - 73 - Server-side Authentication8:47
- 74Next.js Tutorial - 74 - Securing Pages Server-side3:12
- 75Next.js Tutorial - 75 - Securing API Routes4:11
- 76Next.js Tutorial - 76 - Connecting to a Database11:06
- 77Next.js Tutorial - 77 - Callbacks4:34
- 78Next.js Tutorial - 78 - Authentication Summary2:15
- 79Next.js Tutorial - 79 - Deploying Next.js Apps to Vercel4:19
Questions
- How long is this course?
- It has 79 lessons and about 8.5 hours of video (8:27:47 in total). Your progress is saved lesson by lesson, so you can stop and continue on any device you sign in on, or in the same browser without signing in.
- Is this course in English?
- The lessons are taught in English. The teacher is Codevolution; the videos play from their official YouTube channel, and Sabaq adds the lesson order, progress tracking, notes and the summary on this page.
- Who is this course for, and what should I know first?
- It is aimed at learners who already know the basics. Before you start: React fundamentals; JavaScript basics.
- Is it free, and do I need an account?
- Yes, it is free to watch and no account is needed. The videos are official uploads by the teacher on YouTube; a free DanixSoft account is optional and only syncs your progress between devices.
- What should I take after this course?
- A good next step on Sabaq is “CS50's Web Programming with Python and JavaScript (Harvard, 2020)”. The “What to take next” list on this page shows more courses at the same or a higher level in the same topic.
What to take next
Videos by Codevolution, played from their official YouTube channel. Subscribe on YouTube
Official upload by the teacher or institution on their own channel, shown with YouTube's embedded player.
Lessons listed from the official YouTube playlist. Full playlist on YouTube
Lessons last checked Nov 2026. Course summary and lesson structure by Sabaq.
Report a problem or a rights request

