Skip to content

colbyfayock/next-wpgraphql-basic-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js WPGraphQL Basic Starter

⚡️ Quick Start

Requirements

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-starter

Add 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