Emporix Storefront
Use the emporix-storefront skill to develop, run, and deploy the Emporix Journey Aware Storefront.
Use the emporix-storefront skill when you work in the Emporix storefront codebase: run it locally, change pages or components, or deploy it. The storefront is a Next.js and React foundation, not a finished shop. Customization is the expected path.
Skill details
Skill name
emporix-storefront
Package path
skills/emporix-storefront/ (contains SKILL.md)
Install it once using Installing skills.
When to use it
Use this skill when you need to:
Run the storefront locally or check why
/api/readyreturns 503Find out why a product page returns 500
Decide which of the three layers a change belongs in
Customize pages, routing, or design tokens
Deploy to Vercel, Cloud Run, Kubernetes, or Azure
Diagnose a blank page, a 401 on first load, a redirect loop, or CSS tokens that do not resolve
How it works
Most storefront questions reduce to two checks: which layer owns the change, and which environment variable or infrastructure prerequisite is missing.
The codebase uses three layers. Pick the one that owns the change:
Repository data access is wired with InversifyJS. Routes are grouped by [site] and [locale]. Styling uses a brand, alias, and mapped design-token stack. Trust file paths in the repository docs/ over paths remembered from an older version. The skill is checked against the 1.x line, most recently against version 1.11.0.
The source repository emporix-shared/emporix-frontend is private. Request access through the Emporix Developer Portal or partner onboarding before you start.
Prerequisites
Before you use this skill, make sure you have:
The storefront repository checked out
Node.js 22 or 24 and npm 11.10 or newer, with dependencies installed with
npm install. Node.js 20 is no longer supported.Two credential pairs: the public Storefront API client id, and the server-side Emporix credentials the app uses for the service token
A search backend that is configured for your tenant. The default is BatteryIncluded. If your tenant has no BatteryIncluded configuration, set
DI_SEARCH_SERVICE=EmporixSearchService, runnpm run generate, and restart.A copy of
.env.templateas.env– shared demo values work only while those keys are still valid
How to use it
After install, work in your AI tool from the storefront repository. Examples:
The storefront returns 401 on first load and
/api/readyis 503. Which env vars are missing?
Add a field to the product details page. Which layer owns that change?
After deploy I get
ERR_TOO_MANY_REDIRECTS. What should I check first?
Usage notes
If the log shows
Invalid ApiKeyon the anonymous-token call, the demo Storefront key was rotated. PointNEXT_PUBLIC_EMPORIX_TENANTandNEXT_PUBLIC_EMPORIX_CLIENT_IDat your own tenant.A blank first page is often a missing env var, not a routing bug. Check readiness before you edit middleware.
A
503from/api/readymeans a required variable is missing. Since 1.11.0 the response does not name it, so read the server log.If the product page returns
500while the product list works, read the next line in the server log afterSSR getCatalogProductById failed. It points to missing server credentials or to a search backend your tenant does not have. Only a real catalog miss returns404.Platform-layer edits may not hot-reload. Restart the dev server after those changes.
Do not treat Management Dashboard extensions as storefront code. They are a different surface.
Last updated
Was this helpful?

