Allow better organisation of pages (like subfolders)
See original GitHub issueHello,
as my project grows, I see problems with having all the pages within a single folder. Usually every website has some kind of hierarchy, but currently it seems like we are unable to create any kind of hierarchy on file-level.
For instance, it would be perfect for us if we would have the possibility to use subdirectories. I have tried that and found out that my page gets inaccessible after moving it into a subfolder. Neither /mypage
nor /subfolder/mypage
seems to work.
I can see two very simple solutions:
- Ignore subdirectories and make the page accessible by its name (
/mypage
) - Include subdirectories as parts of the route, so we can use dynamic routing to access them
Last but not least, I would like to say thank you for this awesome project.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Find Files Faster: How to Organize Files and Folders - Zapier
Folders and subfolders like these can keep your files organized in a ... The best folder structure is the one that mimics the...
Read more >5 Tips To Create An Organized File Structure Like A Pro
5 Tips To Create An Organized File Structure Like A Pro · 1. Spaces, Dashes, And Underscores – Oh, My! · 2. Avoid...
Read more >Subdomains vs subfolders: What's the difference and which is ...
A subfolder is similar to a subdomain in that it allows you to create categories of content, but they are set up differently...
Read more >The Best Way to Manage Files and Folders (ABC Method)
But over time, the addition of many sub-folders can make it difficult to ... Visit the website : https://www.simpletivity.com Let's Connect!
Read more >The Most Effective Way of Organizing Your Files and Folders
Let's look at some best practices for how to organize files and create a filing ... then have subfolders related to logical units...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m not sure I’m following 🤔
If you create
pages/blog/index.js
it’ll be handled as/blog
If you createpages/blog/hello-world.js
it’ll be handled as/blog/hello-world
Nevermind — I had a previous route glob that was overriding the route in question 🤦🏻♂️.