How to host a Shopify export on Netlify
To host a Shopify storefront export on Netlify, unzip the WebExport download and drag the folder onto Netlify. The copy is static, so it has no cart or checkout. Use _redirects to send /cart and /checkout to your Shopify store, replace theme forms with Netlify Forms, and re-export when prices change.
Last reviewed
Key facts
- The export contains storefront pages and assets, with no Shopify server code.
- A _redirects file can send /cart, /checkout and /account back to the store.
- Netlify Forms can take over contact and newsletter forms.
- Prices and stock are frozen at the moment of export.
What a Shopify export brings to Netlify
WebExport saves a Shopify storefront as static HTML, CSS and JavaScript with product layouts, collection pages, fonts and images. Netlify serves those files quickly, which suits a catalog, a lookbook or a redesign reference. It does not run a store, so the buying path has to go somewhere that can.
Many owners keep the Shopify store as the checkout and let Netlify serve everything before it. Visitors browse static pages, then follow a link to the real cart. The rules for that split live in one small file, and everything else is the saved storefront.
Deploy by drag and drop or with the Netlify CLI
- Unzip the download so the folder contains index.html at its top level.
- Drag the folder onto the deploy area in the Netlify dashboard, or use the CLI for repeat deploys.
- Open the generated netlify.app URL and check the home page, one inner page and one image.
- Add your custom domain under domain settings and follow the DNS instructions.
npx netlify-cli deploy --dir=exported-site # draft deploy
npx netlify-cli deploy --dir=exported-site --prod # production deployRedirects, headers and 404s on Netlify
Netlify reads two plain text files from the publish directory, _redirects and _headers, and an optional netlify.toml. In _redirects each rule is a line with the old path, the new path and a status code. Rules in _redirects run before rules in netlify.toml, and the first match wins. In _headers a path line is followed by indented Name: value lines. Headers apply only to files Netlify serves from its own storage. A file named 404.html in the publish directory is used as the not-found page.
This _redirects file sends the server-only paths to Shopify. The status 302 keeps the rule temporary while you decide on a long-term checkout.
/cart https://your-store.myshopify.com/cart 302
/checkout https://your-store.myshopify.com/checkout 302
/account/* https://your-store.myshopify.com/account/:splat 302
/pages/contact /contact 301Replace your-store with your own myshopify.com handle. The last line is an example of folding a Shopify page path into a simpler one. Product and collection paths are left out on purpose, because search engines already know them and the saved pages answer on the same addresses.
Shopify output that needs fixing on Netlify
| In the Shopify output | What to do on any static host |
|---|---|
| /cart and /checkout paths | These are server pages. The static copy has no cart, so link buyers to your Shopify checkout or a buy button. |
| Calls to /cart.js and product .js endpoints | These live Shopify endpoints return 404 on a static host. Remove or replace the scripts that call them. |
| Prices and stock frozen at export time | Product pages show the values from the day of the export. Re-export after price changes. |
| Images from cdn.shopify.com | Rewritten to local paths. Check large collection pages, because product images add up quickly. |
Search the theme scripts for /cart.js, /cart/add.js and the product .js endpoints. They exist only on Shopify, so on Netlify they return 404 and add to cart stops. Replace the button with a link to the product on the store. Theme contact forms post to Shopify as well. Rebuild them as plain forms with data-netlify="true" and check the first submission in the dashboard.
Forms and dynamic features
Netlify Forms collects submissions without a server of your own. Add data-netlify="true" and a unique name to a form in static HTML and enable form detection in the dashboard, then deploy again so the build parser finds it.
Netlify Forms handles the contact form. Customer login and order tracking stay on Shopify, so keep the /account redirect in place.
What can go wrong
- A shopper who adds to cart on a saved page sees nothing happen. Replace those buttons before launch.
- The saved pages may name the Shopify domain as canonical. If both domains stay public, choose one and fix the tag.
- Large catalogs can pass the 15 page and 20 MB Free plan limits, which truncates the export.
Frequently asked questions
Can I sell products from a Shopify export on Netlify?
Not from the static files alone. Link the buy path to your Shopify store or another checkout, and let Netlify serve the browsing pages.
How do I send /cart to Shopify on Netlify?
Add a line to _redirects with /cart, your myshopify.com cart URL and a 302 status. Do the same for /checkout and /account.
Will product images load from Netlify?
Yes. WebExport rewrites cdn.shopify.com image links to local paths, so Netlify serves them. Check page weight on collection pages with many products.
How do I keep prices current?
Re-export after each price change and deploy the new folder. The saved pages never update on their own.
Official documentation
Free tools for this job
- No-Code Platform DetectorInstantly detect if a site is built with Webflow, Framer, Squarespace, Wix, or Shopify.
- Website Asset Size AnalyzerAnalyze all images, JS, and CSS weights to find performance bottlenecks.
- Static Hosting PickerAnswer 5 questions and get the best hosting recommendation for your exported site.
- Static Site Hosting Cost CalculatorCompare hosting costs: Webflow vs Vercel vs Netlify vs Cloudflare Pages at scale.
Get the Shopify files first
Paste your public Shopify URL into the export form and download a ZIP you can deploy to Netlify. The Free plan covers 1 site, 5 exports a month, 15 pages and 20 MB per export. Professional is a $9.99 one-time purchase with unlimited pages.