Next.js for commerce in 2026: patterns from our production work

Next.js is a React framework with server rendering that serves fast, indexable product pages alongside dynamic account areas.
Cache and price freshness
Marketing and category pages often use ISR with tags invalidated after ERP imports.
Cart pricing always comes from APIs, never stale CDN cache without validation.
Security and cookies
CSP, HSTS and SameSite on session cookies, pre-flight checklist.
We separate admin hostnames from storefronts to shrink attack surface.
Monitoring Web Vitals
RUM for LCP and INP on PDPs, cross-checked with multi-region synthetics.
Responsive images with `priority` only above the fold, lazy the rest.
Frequently asked questions
- App Router or Pages Router?
- New builds start on App Router; we maintain Pages where migration ROI is not there yet.
- Do you use Vercel?
- Sometimes. Vercel edge or customer AWS/GCP containers depending on data residency needs.
- What about i18n?
- Locale paths and hreflang in metadata, consistent with the rest of gmi.software.
Content updated: March 5, 2026