Blog

Headless Shopify with Next.js: When It's Worth It and When It Isn't

A frontend of your own in front of Shopify sounds like more work than a theme. For most stores, it is. At whyraw it was the right call: live after five days, without third-party app scripts, with features no theme offers. How to tell which route fits your store.

, 4 min read

Contents
  1. When headless Shopify is the right choice
  2. What Shopify keeps doing
  3. What a frontend of your own also needs
  4. How long it takes
  5. Frequently asked questions

"Headless" means: Shopify stays catalog, cart and checkout, but everything your customers see comes from code of your own. No Liquid theme, but a frontend on Next.js that talks to Shopify through the Storefront API.

That isn't automatically better. For most stores, a well-built theme is the cheaper answer: it stays close to Shopify, the team keeps editing content in the theme editor, and updates stay predictable. If all your theme needs is a cleanup, you don't need headless. There's a separate article on that. This one shows when the other route pays off.

What changes and what stays

With a theme

  1. ShopifyCatalog, cart, checkout
  2. Liquid theme and appsEvery app brings its own scripts
  3. Visitors

What the store can do is decided by the theme and the app store.

Headless

  1. ShopifyCatalog, cart, checkout
  2. Your own frontend on Next.jsVia the Storefront API, your own code
  3. Visitors

Shopify remains the half that sells. What visitors see belongs to you.

When headless Shopify is the right choice

A frontend of your own pays off when the store is part of the product and a theme can no longer express that. Three signs:

  • The brand needs features no theme offers. At whyraw, a maker of cameras that deliberately do less, that was the cam booth: visitors become the camera themselves in the browser, with live view, a shutter and the brand's look. Add to that a gallery of unedited shots and a countdown on products that aren't released yet, which unlocks itself at the right moment.
  • Load time is part of the brand promise. Without third-party app scripts, the site stays fast. whyraw scores 100 out of 100 in the Ahrefs site audit.
  • The frontend should belong to the company. Code, infrastructure and access sit with the client, not with a theme vendor.
Home page of whyraw.de: handwritten logo on a dark background, below it the buttons to try the cam and to go to the shop The whyraw home page: the first button leads into the cam booth, not into the shop.

If none of the three signs sounds familiar, a lean theme is almost always the better route. How many third-party scripts your store loads today is shown by the Shopify-Check: enter your store address, first results in seconds.

What Shopify keeps doing

Everything that carries a store day to day stays with Shopify: catalog, cart, discounts, checkout, payment. The team keeps managing products and prices in the Shopify admin. The frontend queries that data through typed GraphQL and displays it. At whyraw, we added a two-step withdrawal without login, cookie settings through Shopify's own dialog and bot protection on the forms.

What a frontend of your own also needs

Headless shifts responsibility. Whatever the theme would otherwise bring along, the frontend has to handle itself:

TaskWith a themeHeadless, using whyraw as the example
Error casesHandled by ShopifyThe store tells "nothing in the cart" apart from "Shopify isn't answering right now". A test suite runs it against an unreachable Shopify address.
FindabilityShopify provides the sitemap and product dataSitemap, structured data and a machine-readable product overview for search engines and AI assistants
Tracking parametersStay in the storeClick parameters from ads and price portals are passed through to checkout
Page contentIn the theme editorIn code or in a connected CMS, decided up front
OperationsHosted by ShopifyHosting, monitoring and deployments are part of the handover, not an afterthought

How long it takes

At whyraw: five days from the first storefront commit to go-live, including cart, checkout and legal texts.

whyraw build log: from first commit to live
  1. Storefront API connected for products and cart
  2. Out-of-cam gallery, FAQ and branding
  3. Cam booth, iOS PWA, legal pages
  4. Cart hardened, Playwright tests, live

From the project's Git history, summarized per working day.

Five days aren't a promise for every store. They show what's possible when the scope is clear and the person who decides is at the table. The full build is in the reference whyraw: a headless Shopify storefront that feels like the camera.

Frequently asked questions

What is headless Shopify?

Shopify keeps managing products, cart, checkout and payment. The pages visitors see don't come from a Liquid theme but from a frontend of your own, for example on Next.js, that talks to Shopify through the Storefront API.

Is headless worth it for every Shopify store?

No. For most stores, a lean theme is cheaper and easier to maintain. Headless pays off when the brand needs features no theme offers, or when the frontend is part of the product.

Can my team keep managing products in Shopify?

Yes. Products, prices, discounts and orders stay in the Shopify admin. What changes is page content outside the catalog: it lives in code or in a connected CMS. We settle that before the build.

How long does a headless Shopify store take?

That depends on the scope. whyraw was live five days after the first storefront commit, including cart, checkout and legal texts. That's evidence, not a promise for every store.

Tags: Shopify, Headless, Next.js, Storefront, E-Commerce, D2C

Written by

Engineering & Product

Ships systems that people use every day: web apps, internal systems, AI pipelines, own products. Along the way: Porsche projects at MHP, research at Mercedes-Benz, technical lead of software development at Advanced UniByte.

View profileLinkedIn

What are you working on?

30 minutes on video with Kevin Ludwig, free of charge. You describe what you have in mind; afterwards you know whether it fits and which entry point is right.

“You can simply rely on him.”

Judith Hickel, Gloria Kollektiv e.V.

5.0 from 8 Google reviews

Book a first call

On working days we usually reply within 24 hours.

Next open project start: Monday 26 October.