Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

This page explains when to use the skill and how to work with it. For the product overview, see B2B Commerce Frontend. Installation detail ships with the storefront package. Journey Aware Storefront, B2B Commerce Frontend, and emporix-showcase are names for the same product.

Skill details

Property
Value

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/ready returns 503

  • Find 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

API tokens and scopes belong to the Emporix Auth skill. Mixins belong to Emporix Extensibility. Catalog import belongs to Emporix Product Data.

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, run npm run generate, and restart.

  • A copy of .env.template as .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/ready is 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 ApiKey on the anonymous-token call, the demo Storefront key was rotated. Point NEXT_PUBLIC_EMPORIX_TENANT and NEXT_PUBLIC_EMPORIX_CLIENT_ID at your own tenant.

  • A blank first page is often a missing env var, not a routing bug. Check readiness before you edit middleware.

  • A 503 from /api/ready means 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 500 while the product list works, read the next line in the server log after SSR getCatalogProductById failed. It points to missing server credentials or to a search backend your tenant does not have. Only a real catalog miss returns 404.

  • 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?