Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Content not loading in development environment #172

Open
arjundhanjal opened this issue Feb 3, 2021 · 2 comments
Open

Content not loading in development environment #172

arjundhanjal opened this issue Feb 3, 2021 · 2 comments

Comments

@arjundhanjal
Copy link

arjundhanjal commented Feb 3, 2021

This is my first time using Gatsby, and I'm trying to get up and running with the apollo-docs theme. I'm able to successfully build the app when I run gatsby develop, and I've got index.md and dummy.mdx files under content/, but when I navigate to http://localhost:8000 the following error loads in the content frame:

Gatsby.js development 404 page

There's not a page yet at /docs/content-guidance

Create a React.js component in your site directory at src/pages/docs/content-guidance.js and this page will automatically refresh to show the new page component you created.

If you were trying to reach another page, perhaps you can find it below.

Any ideas? I've modeled my app based on what you provided in #93, but still to no avail.

@InfoExpDesign
Copy link

I'm a newbie too, not an expert. I'd double-check the theme options in gatsby-config.js, such as root, and whether the content-guidance file name matches the listing in sidebarCategories. Also check the /public directory to verify that the build is putting the files there as you expect. We had to set a Path Prefix to get the urls to resolve in the production build, that may or may not relate to your problem.

@arjundhanjal
Copy link
Author

I verified that the file names match what's in sidebarCategories in gatsby-config.js. public/page-data/ shows a folder for each page with a page-data.json file for each.

None of my pages as defined in gatsby-config.js show up in the sidebar, either. pathPrefix is also set.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants