In our cdk we created like ```const app = new <htt...
# general
g
In our cdk we created like
Copy code
const app = new <http://cdk.App|cdk.App>();
new MyStack(app, "dev", {
});
new MyStack(app, "staging", {
});
new MyStack(app, "prod", {
});
to deploy in different environments. In sst we don't need to do this anymore? we will just deploy using the --stage parameter?
t
Correct
You can still follow this pattern if you prefer but we recommend using stages
g
Alright! 🙂
t
definitely go for stages! and control things with env variables where needed 😉
e.g. you want to allow auto-deletion of bucket on lower envs with destroy - but you wanna prevent deleting it on prod