Headless CMS solution with Drupal+Graphql as backend and Next.js for the frontend.
Configure drupal domain and graphql endpoint in .env
file
npm install
The goal is to use the power and flexibility of Drupal for content management and the power of Next.js regarding static sites optimizations.
All drupal pages are catched and sent to the [[...slug]]
page.
Main page fields are passed to the page component as props, global components (settings retrieved from a Drupal config page and main menu) are passed to a React context in _app
file to be easily retrieved from any component.
- Preview state / page with next.js preview API
- GraphQL basic auth option
- Cypress e2e tests
- Basic component testing (react testing library)
- Analytics optional integration
- Storybook integration (maybe ?)