You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present there is no way to change the location of the pages and layout directories in a project. This makes organising a project's src dir harder, because all JavaScript files can't be separated into their own directory and you end up with:
Please note I am absolutely in favour of convention over configuration, but I feel that in this instance forcing directories of React components into the top level of the src directory isn't a good convention. A cleaner structure makes the site easier to use, especially by people with less experience in development (for example when handing off to a client who will be publishing their own content via the site).
At present there is no way to change the location of the
pages
andlayout
directories in a project. This makes organising a project'ssrc
dir harder, because all JavaScript files can't be separated into their own directory and you end up with:By making the paths to these directories configurable they could be relocated to the
javascript
directory, making thesrc
directory cleaner.Please note I am absolutely in favour of convention over configuration, but I feel that in this instance forcing directories of React components into the top level of the
src
directory isn't a good convention. A cleaner structure makes the site easier to use, especially by people with less experience in development (for example when handing off to a client who will be publishing their own content via the site).See @KyleAMathews response to my Stack Overflow Question:
The text was updated successfully, but these errors were encountered: