How to host a Squarespace export on Vercel
To host a Squarespace export on Vercel, unzip the WebExport download and run npx vercel ./exported-site --prod. Squarespace has no official code export, so the copy is a saved render of your public pages. Add vercel.json redirects for dated blog URLs, replace form and store blocks, and keep the old site live until the copy is checked.
Last reviewed
Key facts
- Squarespace’s export tool produces an XML file meant for WordPress, not site code.
- WebExport reads the public site, so no Squarespace login is shared.
- Dated blog URLs can be redirected in one vercel.json rule using a path pattern.
- Form, newsletter and commerce blocks post to Squarespace and need replacements.
What a Squarespace export brings to Vercel
Squarespace’s own export builds an XML file for importing content elsewhere. Its help page says that features relying on Squarespace JavaScript and CSS do not come across. A WebExport copy takes the opposite route: it saves the page hierarchy, template stylesheets, gallery scripts and images as they appear on the published site, so the design arrives intact and Vercel only has to serve files.
The Vercel side is simple, and the work is in the URLs. Squarespace blog posts can carry a year, month and day in the path, depending on the blog settings, and Vercel needs a redirect for every old address that changes. Pages and gallery folders usually keep their names, so they need no rule.
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 handles the most common Squarespace change. It rewrites a dated blog address to a short one with a single pattern, and it keeps URLs free of .html and trailing slashes.
{
"cleanUrls": true,
"trailingSlash": false,
"redirects": [
{
"source": "/blog/:year(\\d{4})/:month(\\d{1,2})/:day(\\d{1,2})/:slug",
"destination": "/blog/:slug",
"permanent": true
},
{ "source": "/shop", "destination": "https://your-new-store.example.com", "permanent": false }
]
}Only use the dated rule if your posts really have dates in the path. Open three old post URLs from your sitemap and look. The /shop rule is a placeholder that sends visitors to a store you run elsewhere, and it is temporary so you can change it later without a cached 308.
Squarespace output that needs fixing on Vercel
| In the Squarespace output | What to do on any static host |
|---|---|
| Images from squarespace-cdn.com and static1.squarespace.com | Open a page offline and watch the network tab. Any request to those hosts means a path was missed. |
| Features that fetch data from the live site | Load-more buttons, search and some blog listings ask the Squarespace server for data. Test each one on the static copy. |
| Form, newsletter and commerce blocks | These post to Squarespace. Replace the form targets and send shoppers to a hosted checkout. |
| Blog category and tag views | They are generated on request. Only URLs that appear in the sitemap or in page links are saved. |
Look at what the live pages ask Squarespace for. Load-more buttons, search and some blog listings fetch data from the live site, and they stop working or keep calling Squarespace. Form, newsletter and store blocks post to Squarespace as well. Replace the form targets, send shoppers to a hosted checkout and remove the search box if you cannot replace it.
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.
Squarespace form blocks have nowhere to post on Vercel. Swap them for a hosted form endpoint, or for a Vercel Function you write for your own inbox. Newsletter signups can point at your email provider’s embed form.
What can go wrong
- Squarespace’s help says the XML export keeps only one blog page. The static copy has no such limit, but each extra blog needs its own redirect check.
- Blog category and tag views are generated on request, so only URLs in the sitemap or in page links are saved.
- If you cancel Squarespace before the DNS change finishes, the old site goes dark while visitors still reach it. Keep it until the new host answers on your domain.
Frequently asked questions
Does Squarespace let me download my site as code?
Its export tool creates an XML file intended for WordPress imports, according to Squarespace’s help. A WebExport copy is the route to HTML, CSS, JavaScript and images you can serve from Vercel.
How do I redirect dated Squarespace blog URLs on Vercel?
Add one redirects entry with a pattern for year, month, day and slug, and send it to the short path. Test three old URLs from your sitemap after you deploy.
Will my Squarespace gallery pages work on Vercel?
WebExport saves gallery scripts and images, so galleries should display from your own files. Compare the ZIP size with the 20 MB Free plan limit, since full-size images add up.
Can I keep my domain registered at Squarespace?
Yes. Leave the registration where it is and change the DNS records to the values Vercel gives you. Check Squarespace’s domain settings for how it handles custom DNS.
Official documentation
Free tools for this job
- Squarespace Exit PlannerStep-by-step guide and checklist generator for leaving Squarespace.
- No-Code Lock-in ScoreAnalyze any platform and get a portability score with data export options.
- 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 Squarespace files first
Paste your public Squarespace 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.