pantheon-systems-ps / pantheon_nextjs_commerce_demo
E-commerce vertical for the decoupled Next.js-on-Pantheon demo: registers the commerce front end (next_site) plus its menu and retail demo content.
Package info
github.com/pantheon-systems-ps/pantheon_nextjs_commerce_demo
Type:drupal-recipe
pkg:composer/pantheon-systems-ps/pantheon_nextjs_commerce_demo
Requires
- drupal/core: >=10.4
- drupal/next: ^2.1
- pantheon-systems-ps/pantheon_nextjs_multi_demo: ^1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-11-04 20:28:59 UTC
README
The E-commerce vertical for the decoupled Drupal + Next.js architecture. Applied on top of
pantheon_nextjs_multi_demo, it turns the shared Drupal backend into the content source for a retail
storefront front end.
Requirements
pantheon-systems-ps/pantheon_nextjs_multi_demo: the global backbone recipe, which defines the shared content model and per-site association field. It is a hard dependency and is applied automatically.- Drupal core 10.4 or newer and
drupal/next, both inherited from the backbone recipe.
What it adds
next.next_site.commerce: registers the E-commerce Next.js front end, with base, preview, and revalidate URLs. The base URL is a recipe input (base_url), overridable per environment.productcontent type: a retail Product type (body, image, price), with a URL alias pattern and its Next.js site-resolver configuration.commerce_eventcontent type: the store-specific Event type (date, location, hero image, virtual-event flag), plus its Next.js site-resolver configuration.nextjs-commercenavigation menu: the storefront navigation, with the Page content type wired to use it.- Demo content tagged to the
commercefront end viafield_next_site: 4 pages, 1 article, 6 products, and 1 event, with their images and menu links. Only the E-commerce front end renders this content.
Apply
composer require pantheon-systems-ps/pantheon_nextjs_commerce_demo drush recipe recipes/pantheon_nextjs_commerce_demo drush cache:rebuild
Set the front-end base URL for your environment:
drush recipe recipes/pantheon_nextjs_commerce_demo \ --input=pantheon_nextjs_commerce_demo.base_url=https://your-store-frontend.example
Requiring or applying this recipe pulls in and applies
pantheon_nextjs_multi_demo first.