Serve a static site export of discourse while discourse is upgrading

If the DNS is managed by Cloudflare (even if it doesn’t use the proxy), it usually updates within seconds. During the update, you could point the domain at another server (like a maintenance page on Netlify/Vercel/Firebase/Surge/etc. where all paths point at an index.html file).

I haven’t tried it yet, but it might be possible to temporarily serve another backend using resolveOverride in a Cloudflare Worker (“serverless” function).

1 Like