Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to place pages in a location other than the src/pages/ directory #2839

Closed
nodox opened this issue Nov 8, 2017 · 1 comment · Fixed by #4490
Closed

How to place pages in a location other than the src/pages/ directory #2839

nodox opened this issue Nov 8, 2017 · 1 comment · Fixed by #4490

Comments

@nodox
Copy link
Contributor

nodox commented Nov 8, 2017

I see that this path plus src/layouts or src/templates are hard coded directories in my project stack. The name src is conflicting with another src folder I have in my project. Therefore I wish there was a way I could designate a custom path for the folder I want gatsby to use for autogenerated pages.

component-page-creator.js is the file I supposed is responsible for this default behavior but when I introduced my change, the app broke. Other files of interest are

load-plugins.js
src/bootstrap/index.js 

The way I thought about introducing the custom path was through the gatsby-config.js because its loaded on bootstrap however it broke the query-watcher.js when I save the file with a change.

What is the best way to introduce this custom path?

@dustinhorton
Copy link
Contributor

@nodox You might want to weigh in on this pre-existing open issue: #2424

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants