Private Routes in Next JS | Mastering Next JS | Next JS Tutorials

Опубликовано: 17 Март 2026
на канале: Techshareskk
848
6

Summary
This video provides an introduction to private routes in Next.js, explaining how to prevent certain folders from being accessed as routes.

Highlights
💻 Private routes using underscores: A folder named with an underscore prefix (e.g., `_profile`) will not be accessible as a route, making it a private route.
🧭 Accessing private routes: To access a private route, you need to use a percentage sign followed by "5f" (`%5f`) instead of the underscore in the URL.
🔐 Example: The video demonstrates creating a folder named `_profile`, showing that it's not accessible as a route.
📁 Nested folders: The video briefly mentions the possibility of creating private nested folders, but doesn't provide a specific example.
📺 More to come: The speaker mentions that they will cover other types of routes in future videos.


Github link:
https://github.com/saikorthivada/next...

Telegram Link
https://t.me/techshareskk

Instagram
  / tech.share.skk  

Playlist links

Angular Project
   • User & Notes Management | Angular Project  

Angular Tutorials Zero to Hero
   • Angular Tutorials  

Angular Unit Testing
   • Angular Unit Testing  

For Angular Reactive forms
   • Angular Reactive forms  

For Javascript Objects Series
   • Javascript Objects  

For Concepts of JavaScript
   • Concepts of JavaScript  

For Projects and POC
   • Innovative Projects & Proof of Concepts  

#webdevelopment #html #css #javascript