- Create a
.envfile in the project root with the values from.env.example - Run
npm install - Run
npm run devand visit http://localhost:8000
One component per file: https://stackoverflow.com/a/42996969 Emotion components in shared folder UI Component Library
CMS Page/Section philosophy!
Custom Pages with multiple data sources example
special routes:
- 404
- index both receive special handling/create pages custom handling explained here (matchpath and / instead of index as routename)
Static vs. Dynamic content Graphql intro,fragments, codegen explained
Same with netlify Netlify deployment workflow
Where can the cms project be found, where are the credentials
Debug possibilities
- Gatsby clean -...?
What services and how to run them?? @bytetyde ?
use node 18
- npm run clean is your friend :-)
- close the browser tab that sits on localhost:8000
WARNING: this AI suggestion does not work!!!!!
Based on your current configuration, here's the compatibility analysis and upgrade path:
- gatsby-source-wordpress: ^5.10.0
- WP Gatsby: 1.1.4
- WP GraphQL: 1.12.2
- WPGraphQL Smart Cache: 1.3.1
Your gatsby-source-wordpress@5.x requires:
- WPGraphQL: 1.5.0 - 1.14.x ✅ (1.12.2 is compatible)
- WP Gatsby: 1.0.0 - 2.x ✅ (1.1.4 is compatible)
WordPress Plugins (Safe Upgrades)
| Plugin | Current | Latest Compatible | Notes |
|---|---|---|---|
| WP GraphQL | 1.12.2 | 1.14.x | Stay within 1.x for gatsby-source-wordpress@5 |
| WP Gatsby | 1.1.4 | 2.1.x | Compatible with gatsby-source-wordpress@5 |
| WPGraphQL Smart Cache | 1.3.1 | 1.4.x | Minor update available |
Steps to Upgrade
- Backup WordPress before any plugin updates
- Update WP GraphQL (1.12.2 → 1.14.x):
- Go to WordPress Admin → Plugins
- Update WPGraphQL to the latest 1.14.x version
- Test GraphQL endpoint:
https://backend.esc-geretsried.de/graphql/
- Update WP Gatsby (1.1.4 → 2.1.x):
- Update via WordPress Admin → Plugins
- Clear WP Gatsby cache after update
- Update WPGraphQL Smart Cache (1.3.1 → 1.4.x):
- Update via WordPress Admin → Plugins
- Test the build locally:
npm run clean
npm run buildIf you want to upgrade to Gatsby 4 or 5, you would need:
- WPGraphQL 1.14+
- WP Gatsby 2.0+
- Significant code changes (React 18, Node.js updates)
This is a larger migration and not required for stability.
After updating WordPress plugins, verify the GraphQL endpoint works:
curl -X POST https://backend.esc-geretsried.de/graphql/ -H "Content-Type: application/json" -d "{\"query\": \"{ generalSettings { title } }\"}"Yes, updates are possible and recommended:
- Update WP GraphQL to 1.14.x
- Update WP Gatsby to 2.1.x
- Update WPGraphQL Smart Cache to 1.4.x
These are safe, compatible updates that may also improve the timeout issues you were experiencing.