question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow better organisation of pages (like subfolders)

See original GitHub issue

Hello,

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:

  1. Ignore subdirectories and make the page accessible by its name (/mypage)
  2. 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

12reactions
timneutkenscommented, Apr 16, 2018

I’m not sure I’m following 🤔

If you create pages/blog/index.js it’ll be handled as /blog If you create pages/blog/hello-world.js it’ll be handled as /blog/hello-world

1reaction
spikebrehmcommented, Oct 13, 2018

Nevermind — I had a previous route glob that was overriding the route in question 🤦🏻‍♂️.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found