Install, configure and deploy the storefront, the Next.js app your shoppers use, from a first local run to a live store.
This section is for whoever installs and runs the storefront: an agency developer, a client’s IT team or a freelancer. It takes you from a fresh clone to a deployed store, mostly through commands and environment variables. Everything the Store Owner manages day to day lives in WordPress and is covered in the Store admin guides.
The storefront is a pnpm workspace. You run and deploy one app; the packages beside it are compiled into that app, so they have no build step of their own.
Directoryretail-store-frontend/
Directoryapps/
Directorystorefront/the Next.js 16 app you run and deploy
.env.exampletemplate for your .env
wrangler.jsoncCloudflare Worker settings
open-next.config.tsOpenNext build settings
Directorylib/
Directoryconfig/store identity and page content
…
Directorypackages/
Directorycommerce-core/the shared commerce model and its contract tests
…
Directoryadapter-woocommerce/the only code that talks to WooCommerce
…
Directoryadapter-woocommerce-invoice/PDF invoice support
…
Directoryadapter-fake/the in-memory store behind Demo Mode
The storefront always runs in one of two modes, chosen by COMMERCE_SOURCE.
Demo Mode
COMMERCE_SOURCE unset, mock or fake. A complete store with a built-in catalogue, cart, checkout with demo payments and a demo account. Nothing to connect. Data lives in memory and resets when the server restarts. Use it to evaluate, demo or develop.
WooCommerce mode
COMMERCE_SOURCE=woocommerce. Products, cart, orders and accounts come from your WordPress site, through WooCommerce and the Companion plugin. This is how a real store runs.