Search by

pantheon-systems-ps / pantheon_nextjs_commerce_demo

willjackson

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

Statistics

Installs: 16

Dependents: 0

Suggesters: 0

Stars: 1

1.0.0 2026-07-28 20:59 UTC

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.
  • product content type: a retail Product type (body, image, price), with a URL alias pattern and its Next.js site-resolver configuration.
  • commerce_event content type: the store-specific Event type (date, location, hero image, virtual-event flag), plus its Next.js site-resolver configuration.
  • nextjs-commerce navigation menu: the storefront navigation, with the Page content type wired to use it.
  • Demo content tagged to the commerce front end via field_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.