Description
Package
Not package-specific
Describe the feature request
The current Drupal site included in the monorepo isn't sufficient for most local development use cases. It requires a database seed to be truly useful, is based on Umami (which is great for the Umami example, but not all use cases,) and doesn't actually have a local environment configuration like DDEV or Lando.
To support wider contribution, this repository should have an easily repeatable local Drupal environment that can support at least all of our packages and starter kits. In the future, it should also be possible to run end-to-end testing against this local environment.
Describe the solution you'd like
Some initial thoughts on what this would include:
- A DDEV configuration for Drupal.
- A DDEV configuration that can be used to run node (specifically the starter kits) - this is necessary for Drupal to be able to communicate with the local Next.js site for things like On-Demand revalidation.
- It should be easy to build and rebuild this local environment.
- It should be possible to build versions of a local environment to support our various starters - Basic (app router), Pages, GraphQL, Umami.
- Building this environment should not require any secrets or data not available in this repository.
Describe alternatives you've considered
Our current setup uses either a live external site, or a db export of this site. I don't believe this is practical for the common contributor as some form of credentials would have to be shared.
Additional context
I previously did some initial work on this on this branch: https://github.com/chapter-three/next-drupal/tree/local-recipe - feel free to work from that, borrow ideas from it, or completely ignore it.