Abdul Taleb
09/08/2021, 11:55 PMthdxr
09/08/2021, 11:57 PMsst-env
to work with any set of outputs cc @FrankFrank
new StaticSite(this, "ReactSite", {
path: "path/to/src",
environment: {
API_URL: api.url,
},
});
sst start
keeps a mapping of API_URL
and the CFN output name. And after the stack is deployed, SST now knows the CFN output value. And when you run sst-env
, it sets the environment variable API_URL
with the output value.Frank
Sean Matheson
01/21/2022, 9:27 AM