Aller au contenu
Blog

Surge.sh not updating after deploy or down (522)

Surge.sh still serving the old version, or showing a 522 or "too many redirects"? What to check, what is unconfirmed, and how Liite compares as a fallback.

The Liite team7 min de lecture

Short answer

First rule out your own side: browser cache, the wrong folder, or a deploy to a different domain. Then check DNS if you use a custom domain. If a plain *.surge.sh address still serves old files or returns a 522 after that, the cause is probably on Surge's end and you cannot force a fix.

Your Surge.sh site is still showing the old version after you deployed, or it is down and returning a 522. You searched for surge.sh not updating or surge.sh down, and you want to know whether the fault is yours.

The evidence is thin. It comes from a Stack Overflow question about updating a Surge project, a GitHub issue on the surge repository where people report the same symptoms, and a community thread about a custom domain. People report redeploys that keep serving the old version for hours, partly loaded pages, 522 errors, and teardown failing with "aborted". We found no official Surge status page, so we cannot tell you whether any of this is fixed as of November 2026.

Why surge.sh isn't updating or shows a 522

Three separate problems get lumped together under "Surge isn't updating." Most common first:

  1. Your side. The browser or a cache in between serves an old copy. Or you published a different folder than you think, or deployed to a different domain than the one you are viewing. If surge ran without the domain you meant, it may have published to a new address instead of updating the existing site.
  2. DNS on a custom domain. People report "too many redirects" and "connection is not private" on custom domains. In the community thread we found, "too many redirects" was fixed by adding an A record. That is a DNS setup problem, not a stale deploy.
  3. Surge's side. Several people report redeploys that keep serving old files for hours, partly loaded pages and 522 errors. A 522 is a connection timeout between a CDN and the origin server, so it usually means the trouble is upstream of you. The root cause is not known, and the GitHub issue does not confirm a fix.
SymptomLikely causeWhat to do
Old version after deployBrowser cache or wrong folder or domainHard refresh, redeploy with explicit folder and domain
"Too many redirects" on custom domainDNS or a registrar-level redirectCheck the A record, remove duplicate redirects
"Connection is not private"Certificate does not match the domainRecheck the domain setup in Surge's docs
522 on a *.surge.sh addressUpstream timeout, cause unknownWait, retry, or move the files elsewhere
Teardown fails with "aborted"Reported, cause unknownRetry later

How to fix it

1. Rule out caching

  1. Reload with your browser's hard refresh.
  2. Open the site in a private window.
  3. Open it on your phone over mobile data.

If the new version appears in any of those, it was caching and nothing is wrong with the deploy.

2. Redeploy to the exact domain

Run the command from your project and name both the folder and the domain, so you update the existing site rather than creating a new one:

surge ./build yourproject.surge.sh

Check the domain you typed

A typo or a missing domain can publish a second site at a new address while the old one stays untouched. That looks exactly like "my deploy did nothing."

3. Confirm you published the build output

If your project has a build step, the folder you deploy must be the freshly built one, not the source folder or an old build. Run the build first, then check that the files in the folder have a recent modified time.

4. Fix custom-domain DNS

For "too many redirects", check that the domain has the A record Surge's documentation asks for, and that your registrar or DNS provider is not also redirecting the domain. For "connection is not private", the certificate may not match the domain, so recheck the domain setup in Surge's docs. None of this applies to a plain *.surge.sh address, where no DNS of yours is involved.

5. Wait and retry

If a plain *.surge.sh address still serves old files or returns a 522 after steps 1 to 3, the problem is probably on Surge's side. Redeploying again after some time is what people try, and it is not guaranteed to work.

6. Look for notices

Check the surge project's GitHub issues and Surge's homepage. We could not find a dedicated status page.

What won't help

  • Changing your site's code does not fix a 522 or a certificate warning.
  • Redeploying repeatedly does not help if the problem is upstream. It only adds more uploads.
  • Changing DNS records does nothing for a *.surge.sh address.

Checklist before you try again

  • The new version shows in a private window or on mobile data.
  • The folder you deploy is the latest build output.
  • The command names the exact domain you are viewing.
  • For a custom domain: the A record is set and nothing else redirects the domain.
  • You have waited and retried at least once.

Surge or Liite: which fits a static site

If the fix keeps failing, the practical move is to host the built files somewhere else. Here is how Liite compares for the same job, using only what we can state about it. We have no verified details about Surge's plans or limits, so none are compared.

Surge.sh (as reported)Liite uploaded site
Publishsurge command from a folderUpload an .html file, a .zip, or a folder in the browser
UpdateRedeploy to the same domainUpload again; the address stays the same
Old versionsNot covered hereKept for rollback (3 on Free, 20 on Pro, 100 on Business)
Server-side codeStatic hostingNone (no PHP, Node or databases)
Build from sourceNot covered hereNo; upload the built files
Command line or APICLINo CLI, no upload API
Custom domainSupported with DNS recordsPro and up, one per site

Liite is not a drop-in for a terminal workflow

If your deploys run from a script or CI with the surge command, Liite has no CLI, API or Git deploys. You would upload by hand each time.

If you'd rather not deal with this again

If your site is static HTML, CSS and JavaScript, upload it to Liite as a single file, a zip or a folder and you get a <slug>.liite.site address. Uploading again keeps the same address and replaces the content, and earlier versions are kept so you can roll back. A zip needs index.html at the top level or inside one wrapper folder, which Liite strips automatically. See Put an HTML file, a zip or a PDF online or the uploaded sites docs.

Know the limits first. A Free uploaded site needs a card on file, is limited to 3 MB, goes offline 7 days after the last publish and is not indexed by search engines. Pro is 25 MB per site with no expiry, and adds custom domains and passwords. The custom domain guide covers the DNS steps.

If nothing works

For a plain *.surge.sh address that stays stale or returns a 522, contact Surge through its GitHub issue tracker or the support contact on its homepage. For a custom domain, contact your registrar or DNS provider. Include:

  • the exact domain and the exact error text
  • the time of the failure, with your time zone
  • the command you ran and its output
  • what you already tried (hard refresh, private window, redeploy)
Hi, my site yourproject.surge.sh is still serving an old version
after I redeployed with: surge ./build yourproject.surge.sh
It also returned a 522 at [time, time zone].
I checked in a private window and on mobile data, and the result
is the same. Is there a known issue, and can the cache or deploy
be reset? Output of the last deploy is below.
[paste output]

Common questions

Is Surge.sh down right now?

We could not find an official status page, so there is no authoritative answer. Check Surge's homepage and its GitHub issues, and test from a second network.

Why does a 522 mean it is not my fault?

A 522 is a timeout between a CDN and the origin server. Your files are not the cause, though a wrong custom-domain setup can sometimes produce connection errors too.

Can I move my Surge site to Liite without rebuilding?

If you already have the built files, yes: upload the folder or a zip. Liite does not build from source, so run your build first.

Will my old Surge address redirect to the new one?

No. The two are separate services, so update your links, or point a custom domain at the new host if you have one on a Pro plan or higher.