Skip to content

Commit

Permalink
fix(protected list): fix the protected stage list
Browse files Browse the repository at this point in the history
  • Loading branch information
mdial89f committed Apr 20, 2022
1 parent e0f23fe commit 0459036
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/serverless-stage-destroyer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ export class ServerlessStageDestroyer {

private confirmDestroyCommand(stage: string) {
// Another safeguard against destroying protected stages
// if (stage == "main" || stage == "staging" || stage == "production") {
if (stage == "meow") {
if (stage == "master" || stage == "main" || stage == "staging" || stage == "production") {
throw `
**********************************************************************
You've requested a destroy for a protected stage (${stage}).
Expand Down

0 comments on commit 0459036

Please sign in to comment.