nextjs.org/docs/app/building-your-application/routing/colocation
3 Users
0 Comments
11 Highlights
3 Notes
Tags
Top Highlights
This is different from the
directory, where any file in
is considered a route
Since files in the app directory can be safely colocated by default, private folders are not required for colocation
only the content returned by page.js or route.js is sent to the client
a route is not publicly accessible until a page.js or route.js file is added to a route segment
This means that project files can be safely colocated inside route segments in the app directory without accidentally being routable
Private folders can be created by prefixing a folder with an underscore: _folderName
You can create URL segments that start with an underscore by prefixing the folder name with %5F
not be considered by the routing system
opting the folder and all its subfolders
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.