Skip to content

Stage Protection

stages: {
production: { protected: true },
staging: { protected: true },
"pr-*": { protected: false, ttl: "7d" },
}
  • wd destroy --stage productionrefuses unless --force
  • wd destroy --stage pr-123 → succeeds (matches pr-*)
  • wd gc → only destroys unprotected stages past their TTL
  • Unmatched stages default to protected (safe default)