How to host a Shopify export on Vercel
To host a Shopify storefront export on Vercel, unzip the WebExport download and run npx vercel ./exported-site --prod. The copy is static, so it has no live cart or checkout. Redirect /cart and /checkout to your Shopify store, remove calls to Shopify endpoints, and re-export whenever prices or products change.
Last reviewed
Key facts
- The export keeps storefront layouts, product and collection pages and their assets, but no server code.
- Cart and checkout must stay on Shopify or move to another service.
- Product pages show the prices and stock from the day of the export.
- Shopify’s product CSV leaves out images and collection membership, so it is no substitute for the page export.
What a Shopify export brings to Vercel
WebExport captures the published storefront: HTML, CSS, JavaScript, product layouts, collection pages, fonts and images. Vercel can serve all of that as static files. What it cannot do is run Shopify itself, so the copy works well as a catalog, an archive or a base for a redesign, and it needs help for anything that takes an order.
The simplest working setup keeps the Shopify store alive on its myshopify.com address and uses Vercel for the front pages. Product pages stay as saved, and the buy path sends visitors to Shopify. That split gives you a fast static front end without rebuilding a cart.
Deploy the folder with the Vercel CLI
- Unzip the WebExport download and keep the folder name short, for example exported-site.
- Run a preview deploy first, open the URL it prints and click through the main pages.
- Promote the same folder to production once the preview looks right.
- In the project settings, add your domain and create the DNS records Vercel shows you.
npx vercel ./exported-site # preview deployment
npx vercel ./exported-site --prod # production deploymentRedirects, headers and 404s on Vercel
Vercel reads a vercel.json file at the root of the deployed folder. A redirects entry takes a source, a destination and either permanent (a 308) or statusCode. A headers entry takes a source pattern and a list of key and value pairs. Setting cleanUrls to true serves about.html at /about and sends /about.html to /about with a 308, and trailingSlash set to false sends /about/ to /about. Vercel also serves a 404.html from the project root for unmatched paths on a static deployment, which you should confirm with a request to a URL that does not exist.
This vercel.json sends the server-only paths back to Shopify and strips .html from the rest. Replace the store address with your own.
{
"cleanUrls": true,
"redirects": [
{ "source": "/cart", "destination": "https://your-store.myshopify.com/cart", "permanent": false },
{ "source": "/checkout", "destination": "https://your-store.myshopify.com/checkout", "permanent": false },
{ "source": "/account/:path*", "destination": "https://your-store.myshopify.com/account/:path*", "permanent": false }
]
}All three redirects are temporary, so a browser will not cache them if you change your setup. Product and collection paths such as /products/handle and /collections/handle are left alone, so links from search engines keep working. If you take orders on a different system, point the destinations there.
Shopify output that needs fixing on Vercel
| 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. |
Open the theme scripts and look for calls to /cart.js, /cart/add.js or a product .js endpoint. Those endpoints belong to Shopify and return 404 on Vercel, so add-to-cart buttons will fail. Replace the buttons with links to the product on your Shopify store, or with a hosted buy button, and remove the cart drawer.
Forms and dynamic features
Vercel has no form inbox for static files. Point the form at a form service, or write a Vercel Function that receives the POST and forwards it to your email or database.
Contact and newsletter forms on a Shopify theme post to Shopify. Replace them with a hosted form service or your email provider’s embed, and keep customer account links pointing at the store.
What can go wrong
- A visitor can reach a product page that shows a price you have since changed. Re-export after every price update.
- The saved pages may carry a canonical tag for the Shopify domain. If both sites stay live, decide which domain should rank and set the canonical to it.
- Large catalogs push the folder past the Free plan’s 15 pages and 20 MB, so check the page count first.
Frequently asked questions
Can I run a Shopify checkout on Vercel?
No. Checkout runs on Shopify’s servers. The static copy can link to it, and you can keep the store on myshopify.com while Vercel serves the storefront pages.
Do product pages keep working on Vercel?
Yes as static pages. Their URLs, images and layouts are saved. Prices and stock are frozen at the time of the export, so re-export when they change.
Why does add to cart fail after I deploy?
The theme calls Shopify endpoints such as /cart.js, which do not exist on Vercel. Replace the button with a link to the product on your Shopify store.
Can I export products as a CSV instead?
Shopify offers a product CSV export, but its help says images and collection membership are not included. It helps with data backups, not with the look of the storefront.
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.
- Redirect Map BuilderBuild an old-to-final redirect mapping from URL lists.
Get the Shopify files first
Paste your public Shopify URL into the export form and download a ZIP you can deploy to Vercel. 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.