Solution skill
Workflow: dev, staging, and prod as Neon branches
Complete solution
Shows how to fix workflow: dev, staging, and prod as Neon branches. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Staging is a long-lived child branch of prod, refreshed nightly via reset from parent. Developers get personal branches from staging or prod, with expiration set (7 days) and anonymization if they carry prod data.
Steps
- Production lives on the default (root) branch. Mark it protected.
- Staging is a long-lived child branch of prod, refreshed nightly via reset from parent.
- Developers get personal branches from staging or prod, with expiration set (7 days) and anonymization if they carry prod data.
- Promote by merging code and resetting staging from prod, not by copying data upward; data flows down, code flows up.
- Scope IP Allow to protected branches so prod is locked down while dev branches stay accessible.
When to use
You are seeing this: Dev, staging, and production as branches of one Neon project, with data flowing one direction. Use this skill when you run into "Workflow: dev, staging, and prod as Neon branches".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Neon's branch management docs (verified live 2026-09-26): branch hierarchies, protected branches, reset from parent for refreshes, branch expiration, and IP Allow scoping to protected branches; Neon's branching workflow guides document the production/staging branch model.
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_E1KqyMjZ9blFZ3weoTeAAg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Workflow: dev, staging, and prod as Neon branches <span>— Vectle</span></a>