Deployment Differences with PWA Kit
PWA Kit uses Webpack with a single-command deployment that can auto-build. Storefront Next uses Vite with React Router 7, requiring separate build and push steps but providing more granular control over bundle sizes. Both deploy to the same Managed Runtime infrastructure, but Storefront Next offers more sophisticated bundle analysis and chunk splitting strategies for better performance optimization.
| Aspect | PWA Kit | Storefront Next |
|---|---|---|
| Build Tool | Webpack | Vite + React Router |
| Build Command | pwa-kit-dev build | react-router build |
| Push Command | pwa-kit-dev push | sfnext push |
| Analysis Tool | Webpack Bundle Analyzer | Rollup Visualizer |
| Config Format | JavaScript | TypeScript |
PWA Kit:
Storefront Next:
PWA Kit:
Storefront Next:
PWA Kit:
Storefront Next:
- MRT Target: Both deploy to Managed Runtime.
- Credentials: Same
~/.mobifyfile format. - Node.js Version: Both use Node.js 22.x.
- SSR Parameters: Same configuration structure.
- Proxy Config: Same proxy path patterns.
-
Build Process
- Replace
npm run buildwithpnpm build. - Update CI/CD scripts for new commands.
- Replace
-
Bundle Size Monitoring
- Convert bundlesize config to new format.
- Add granular chunk limits.
-
Deployment Scripts
- Update from
pwa-kit-dev pushtosfnext push. - Ensure build runs before push.
- Update from
-
Configuration Files
- Migrate SSR config to
config.server.ts. - Update environment variable format.
- Migrate SSR config to