WPGraphQL.com is a Next.js site that uses WordPress as the CMS.
This repository contains the Next.js code to source data from WordPress and create pages using WordPress data.
Then run npm install
to install dependencies.
Then run npm run start
to run the site in development.
NEXT_PUBLIC_SITE_URL=https://www.wpgraphql.com
WPGRAPHQL_URL=https://content.wpgraphql.com/graphql
NEXT_PUBLIC_WORDPRESS_URL=https://content.wpgraphql.com
FAUSTWP_SECRET_KEY=key_for_previews
GITHUB_TOKEN=personal_access_token