Automation

I Turned Off Deployment. The Site Stayed Up Anyway.

밝은 바탕이 비스듬한 선으로 갈려 왼쪽은 회색, 오른쪽은 연초록이다. 왼쪽에는 화면 밖으로 잘린 커다란 꺼진 스위치가 있고, 가운데 경계 위에서 연결선이 ✕로 끊겨 있으며, 오른쪽 초록 영역의 브라우저 창은 여전히 초록 신호를 내보내고 있다

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

The admin settings card for "Publish to live site", switched off, with an orange warning below it
The admin itself is Korean-only; the labels here were swapped to English for this post. Everything else — the layout, the switch, the colors — is the real screen. The warning only shows when the switch is off.

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.