Hello :wave: We are trying to introduce preview d...
# seed
s
Hello 👋 We are trying to introduce preview deployments with each PR with seed.run. For our use case, we wanted to create new resources (S3, DynamoDB, etc) for each PR deployment. This is needed to ensure isolation between each PR deployment. We looked into the options available on seed.run dashboard. There was an option for
Auto-deploy PR
, however it does not provide an option to provide additional environment variables when a stage is selected. Is there an option somewhere to add additional environment variables on top of the source stage? or are there any envs of seed/sst that we can use to detect the current stage while deploying and run our logic based on stage value there ?
o
The current stage is available in seed under
$STAGE_NAME
https://seed.run/docs/configuring-stage-variables In SST its available as
app.stage
- we use that to load up different config files and customise the build between personal and upstream stages - I expect you can do the same for PR builds
s
Yes, that would work, thanks a ton
f
Thanks @Omi Chowdhury!