Build Pipeline
This page explains what happens when Shoppex builds and deploys a theme.High-Level Steps
Simplified:Inject initial data (optional)
If
<!--initial-data--> exists in dist/index.html, Shoppex injects window.__SHOPPEX_INITIAL__.Source vs Live Output (Important)
Conceptually there are two things:- Source files (your editable theme project)
- Built output (the
dist/folder that customers get)
dist/index.htmlexistsdist/contains all assets referenced by that HTML
Initial Data Injection
If the builtdist/index.html contains <!--initial-data-->, Shoppex injects:
window.__SHOPPEX_INITIAL__ = { store, products, groups }
Next Steps
Edge Serving
How published builds are served to customers and what gets cached.
Troubleshooting
If your theme builds but looks wrong in production, start here.
Implementation details (storage providers, edge architecture) are internal and may change. The stable contract is always the same:
bun run build must produce a valid dist/.