Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Next.js 15 Tutorial - 46 - Middleware
Play lesson

Next.js 15 Tutorial - Beginner to Advanced - Next.js 15 Tutorial - 46 - Middleware

4.0 (4)
42 learners

What you'll learn

This course includes

  • 7 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

Middleware in Next.js: Redirects, URL Rewrites, Cookies and Headers In this video, we explore the powerful feature of middleware in Next.js, which allows you to intercept and control requests and responses globally in your application. We'll demonstrate how to implement middleware, focusing on redirects, URL rewrites, and handling cookies and headers. Learn how to create middleware files, use matcher configs and conditional statements, manage user preferences through cookies, and add custom headers for better functionality and debugging. 📔 GitHub Repo - https://github.com/gopinav/Next.js-15-Tutorials 📘 Frontend Interview Course - https://learn.codevolution.dev/ 💖 Support UPI - https://support.codevolution.dev/ 💖 Support Paypal - https://www.paypal.me/Codevolution 💾 Github - https://github.com/gopinav 📱 Follow Codevolution + Twitter - https://twitter.com/CodevolutionWeb + Facebook - https://www.facebook.com/codevolutionweb 📫 Business - [email protected] 00:00 Introduction to Middleware in Next.js 00:22 Setting Up Middleware in VS Code 00:48 Redirection with Middleware 02:13 Conditional Statements in Middleware 02:58 URL Rewrites with Middleware 03:26 Handling Cookies and Headers in Middleware 05:26 Summary and Conclusion 06:04 Next Section: Rendering in Next.js 06:09 Support the Channel

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

FAQs

Course Hive
Download CourseHive
Keep learning anywhere