Open ironbyte opened 1 day ago
No they both work, sst dev
is doing the deploy for you. It's just the docs doesn't assume that you are running sst dev
all the time, so it's asking you to explicitly do a deploy.
The other aspect to this is you might be setting the secret for a stage that you don't usually run sst dev
on.
When adding secrets to an SST project using AWS as a provider for a Remix app, the docs instruct to run sst deploy after using the sst secret set command. However,
sst dev
also appears to work and is pretty faster. I've verifed that the secret's properly added on my AWS account.Steps to reproduce:
sst secret set StripeKey st_1234
sst deploy
, runsst dev
Observed behavior:
sst dev
works and is much faster (in seconds)Question:
Are there any repercussions or potential issues when using
sst dev
instead ofsst deploy
after adding secrets? Maybe SST docs are a bit outdated regarding this?