Nextjs Headless WordPress
The Next.js Headless WordPress project is an active project that aims to provide a decoupled architecture for WordPress, using Next.js as the frontend and WordPress with WPGraphQL as the backend. This project offers a range of features including a home page, blog page, post page, post preview, post pagination, SEO component with Yoast SEO integration, Cypress for testing, Eslint for linting, Apollo Client with GraphQL API endpoints, header and footer integration with WordPress menu items, display of WordPress widgets on the Next.js frontend, integration of site title, tagline, and copyright text sourced from WordPress, Next.js Image component with image optimization, authentication with JWT and Http Only Cookie implementation, login feature for WP Post Preview in Next.js, incremental static re-generation for new static post pages, and support for Gutenberg styles. The project also includes a tutorial course and a live demo.
To set up the Next.js Headless WordPress project, follow these steps:
./nxtwp configure
to set up the project.For more information, refer to the project Wiki.
The Next.js Headless WordPress project is an active project that aims to provide a decoupled architecture for WordPress, using Next.js as the frontend and WordPress with WPGraphQL as the backend. It offers a range of features including home page, blog page, and post page templates, post preview, post pagination, load more posts functionality, SEO component with Yoast SEO integration, Cypress for testing, Eslint for linting, Apollo Client with GraphQL API endpoints, integration of header and footer with WordPress menu items, display of WordPress widgets on the Next.js frontend, integration of site title, tagline, and copyright text sourced from WordPress, Next.js Image component with image optimization, authentication with JWT and Http Only Cookie implementation, login feature for WP Post Preview in Next.js, incremental static re-generation for new static post pages, and support for Gutenberg styles. The project also includes a tutorial course and a live demo. To set up the project, Docker is recommended, but it can also be used with a custom WordPress setup. Detailed installation instructions are provided in the documentation.