I flipped the deploy switch off. And the site stayed live anyway. Content I was still editing was sitting out there in public.

It wasn't a bug. It worked exactly as designed — I had just misread the design.
Three problems stacked on top of each other
1. I didn't know where the real switch was
There were two separate values controlling deployment.
| Location | Name | What it actually does |
|---|---|---|
.env |
SITE_DEPLOY |
Picks the deploy method |
| Admin settings | publishLive |
Decides whether to deploy at all |
The docs talked about the .env value as if it were the switch. The thing that actually turned deployment on and off was the admin setting.
Both used the word "deploy," but they did different jobs. When two things share a name, whoever reads it later just picks one at random.
2. Saving a setting was itself a deploy
Here's where it got more confusing. Changing a publish setting changes what the site renders, so it has to be rebuilt and redeployed. So a deploy was wired directly into saving that setting.
The result: flipping the switch on triggered a deploy right then and there. It wasn't "I'll start publishing from now on" — it was "publishing right now."
I only figured this out much later, looking at the deploy logs and seeing a deploy fire at the exact moment I'd flipped it on.
3. Turning it off doesn't take anything down
This was the biggest misunderstanding.
Turning it off means no more future publishes. Whatever was already published stays live. Obvious once you say it out loud, but the instinct the moment you flip the switch off is "that must have taken it down."
A static site makes this worse. The files that were already deployed just sit there, completely disconnected from the admin panel. Turn the admin off, shut your laptop — the site is still up. That's the whole point of the architecture, and it's exactly what tripped me up.
What I fixed wasn't the code — it was the wording
The behavior stayed exactly the same. I only changed the names and the copy.
I renamed the abstraction into an action. Instead of the vague word "deploy," it's now "Publish to live site." On means publish, off means don't. Nothing in that name implies taking the site down.
I added a warning for the off state.
Already-published posts are still live — this switch doesn't take the site down.
This line only appears when the switch is off. You don't need it when it's on, and the only person who can be misled by it is the person who just turned it off.
I added a confirmation step for turning it off, too. Normally you'd put the confirmation on the "on" action, since that's the riskier-looking one. But the actual incident happened on the off side.
Stop publishing? This only stops future changes from going out. Posts that are already published stay live.
Names are what cause incidents
I barely touched any code for this. Not a single conditional changed. What changed was the words used to describe the same behavior.
"Deploy off" names a state. "Stop publishing" names an action. A name that describes a state leaves the reader to imagine which state it is. When that guess is wrong, you get an incident.
When you're building a feature, it's easy to assume you're done once the behavior is correct. But the person using it only sees the name you gave that behavior and infers the outcome from it. If the two don't line up, the code can be flawless and you'll still get burned.



