Skip to content
Pixeltree

Headless

Next.js Commerce Storefront Build

A Next.js commerce storefront build on the App Router, wired to Shopify or a composable stack, engineered for Core Web Vitals and editorial velocity.

What you get

Deliverables, not deliverable-ish.

Scoped plan

Written scope with success criteria, not a vague retainer.

Senior execution

The person scoping the work is the person doing the work.

Measurable output

Deliverables you can point at. Dashboards, flows, code, docs.

Clean handoff

Documentation and training so the work lives inside your team.

How we work

Our approach.

Why Next.js for commerce

Next.js is the default React framework for teams who want a flexible front end that can talk to any commerce engine. Hydrogen is Shopify native. Next.js is platform agnostic. That flexibility is the reason to choose it and also the reason to be careful with it. A Next.js commerce storefront can be built against Shopify, against a composable stack with a separate commerce engine, or against a home grown API. Each of those setups has different operating costs and different failure modes.

The problem Next.js solves is twofold. First, it gives a front end team a mature, well documented, well staffed framework with a clear upgrade path. Second, it gives the business a storefront that is not locked into a single commerce vendor. Swapping out a commerce engine behind a well architected Next.js front end is a project. Swapping out a theme behind the same commerce engine is a rebuild. For brands who expect to outgrow their current commerce platform or who are already on a composable stack, Next.js is the right call.

The problem Next.js does not solve is operational fit. Teams who expect the storefront to be something the marketing team edits in a visual builder are going to be unhappy. Teams who do not have engineering capacity to maintain a React application are going to be unhappy. Teams who want a quick win without a three year operating commitment are going to be unhappy. We only recommend Next.js when the operating model supports it.

Our approach

We run Next.js commerce builds as a ten to eighteen week engagement depending on the scope of the commerce engine integration.

  • Step one, discovery and architecture. We align on the commerce engine, the CMS, the hosting target, and the deployment and preview flow. We define the rendering strategy page by page.
  • Step two, foundation. We stand up the Next.js project on the App Router with TypeScript. We wire up the commerce engine, the CMS, and the analytics stack. We configure caching and revalidation.
  • Step three, template and component build. We build the core templates. Home, collection, product detail, cart, account, content pages. Every template is built against live data and every component is documented.
  • Step four, content modeling and migration. We model the content in the CMS, migrate existing editorial content, and configure the preview flow.
  • Step five, performance and SEO hardening. Core Web Vitals, structured data, sitemap, canonical tags, redirect map. We do not launch until the numbers are inside the thresholds that matter.
  • Step six, launch and stabilization. Staged DNS cutover, two week hypercare window, daily reviews.

What you get

  • A production Next.js storefront on the App Router, TypeScript, and your chosen commerce and content stack.
  • A component library documented in Storybook or an equivalent.
  • A headless CMS configured with the content model and a working preview flow.
  • A data fetching layer with caching, revalidation, and error handling patterns that match the commerce engine.
  • Structured data, canonical tags, and a redirect map that protect SEO through the cutover.
  • Core Web Vitals on product and collection templates inside Google's good thresholds on launch day.
  • A deployment pipeline, a preview flow, and runbooks for the on call engineer.

Timeline

The engagement runs ten to eighteen weeks.

  • Weeks one and two, discovery and architecture.
  • Weeks three and four, foundation and commerce integration.
  • Weeks five through eleven, template and component build.
  • Weeks twelve and thirteen, content migration and performance hardening.
  • Weeks fourteen and fifteen, UAT and SEO hardening.
  • Weeks sixteen through eighteen, launch and hypercare.

Mini case anatomy

A composite. A thirty eight million dollar electronics accessories brand running on a legacy commerce platform that was sunsetting. The business was already committed to a composable stack with a separate commerce engine and a headless CMS. The front end was the last piece of the puzzle.

The Next.js build integrated against the new commerce engine over the Storefront API, pulled editorial and navigational content from the CMS, and rendered most templates on the server with granular revalidation. The PDP was built with streaming so the critical path rendered under eight hundred milliseconds on a mid range mobile device. The collection page used server side filtering with a progressive enhancement pattern so the filter experience worked even before JavaScript hydrated.

Launch day numbers. PDP LCP one point four seconds. INP one hundred forty milliseconds. CLS point zero four. Six months after launch the brand swapped its shipping and tax provider behind the same Next.js front end with a four day engineering effort and zero customer facing impact. That flexibility was the reason Next.js was chosen in the first place.

FAQs

Related reading. The headless development hub covers the full portfolio. For a Shopify specific alternative, see Hydrogen build. If the composable stack itself is still being designed, start with composable commerce. For migrating an existing Liquid storefront, see headless migration. Operators making the platform decision often read headless Shopify versus Liquid and platform strategy. For CMS decisions, Contentful versus Sanity is the most useful comparison.

FAQ

Questions we hear most.

Hydrogen if you are staying fully inside Shopify and want the tightest integration. Next.js if you are on a composable stack, need more flexibility on hosting, or have existing engineering investment in the Next.js ecosystem. Both can deliver excellent results. The decision is more about team fit than raw capability.
No. Next.js runs on any Node or edge runtime that supports its server components. Vercel is the easiest path and what we recommend for most teams. AWS, Cloudflare, and Netlify are all viable if you have specific reasons to go that direction.
We do not build custom checkout unless there is a compelling reason. On Shopify, we hand off to Shopify checkout. On a composable stack we use the commerce engine's hosted checkout or a pre built checkout component. Custom checkout is a decision with large ongoing maintenance cost.
The App Router supports granular metadata, dynamic sitemaps, and streaming that can actually improve SEO compared to older patterns. We configure structured data, canonical tags, and a crawl budget plan as part of every build.

Let's see if we're a fit.

15 minutes. We'll tell you whether this service fits where you are. If not, we'll name what does.

Book a 15-min call