yarn create next-app -e https://github.com/colbyfayock/next-wpgraphql-basic-starter
# or
npx create-next-app -e https://github.com/colbyfayock/next-wpgraphql-basic-starterAdd an .env.local file to the root with the following:
WORDPRESS_GRAPHQL_ENDPOINT="http://yourhost.com/graphql"
In some cases, the above may not work. Change it as follows:
WORDPRESS_GRAPHQL_ENDPOINT="http://yourhost.com/index.php?graphql