Static generation using Wordpress as the data source
The WPGraphQL plugin also gives you access to a GraphQL IDE directly from your WordPress Admin, allowing you to inspect and play around with the GraphQL API.
Inside your WordPress admin, go to Posts and start adding new posts:
When you’re done, make sure to Publish the posts.
Note: Only published posts and public fields will be rendered by the app unless Preview Mode is enabled.
See .env.local
, .env.staging
, and .env.production
See serverless-<stage>.yml
and buildspec-<stage>.yml
WORDPRESS_API_URL=...
# Only required if you want to enable preview mode
# WORDPRESS_AUTH_REFRESH_TOKEN=
# WORDPRESS_PREVIEW_SECRET=
Internal page navigation is in components/generic/nav/master-nav.js
and stored in the top_navigation
variable