Abdul Taleb
09/09/2021, 3:04 AMthis.addOutputs({...})
sync or async? I'm wondering If I can run some code after it that can start an external service that can grab the env variables from sstthdxr
09/09/2021, 3:09 AMAbdul Taleb
09/09/2021, 3:15 AMthdxr
09/09/2021, 3:18 AMAbdul Taleb
09/09/2021, 3:19 AMthdxr
09/09/2021, 3:19 AMthdxr
09/09/2021, 3:19 AMAbdul Taleb
09/09/2021, 3:20 AMthis.afterStackUpdate()
etc.thdxr
09/09/2021, 3:55 AMsst-env
but I'm not familiar with the inner workings of itAbdul Taleb
09/09/2021, 4:00 AMAbdul Taleb
09/09/2021, 4:02 AMAbdul Taleb
09/09/2021, 4:02 AMAbdul Taleb
09/09/2021, 4:07 AMsst-env: Cannot find any SST environment outputs in /Users/myUser/ProjectA
which is 2 levels above my ui projectFrank
sst-env
currently only works for StaticSite
constructsFrank
Frank
Frank
sst-env
.Frank
Abdul Taleb
09/09/2021, 5:37 AMFrank
--outputs-file
flag to generate a JSON file with all the stack outputs. ie. sst start --outputs-file outputs.json
Frank
outputs.json
and set the build environment variable for your react native start command.Frank
Abdul Taleb
09/09/2021, 2:13 PMsst-env
with a StaticSite construct and I'm getting the above errorBlake E
09/09/2021, 4:49 PMBlake E
09/09/2021, 4:50 PMsls logs -f functionName
so my dev team would be able to easily tail deployed cloudwatch logs w/o sst start
)Abdul Taleb
09/09/2021, 8:47 PMAbdul Taleb
09/09/2021, 8:48 PMStaticSite
construct as mentioned in the docs, but getting that error when I run npm run start
thdxr
09/09/2021, 8:51 PMAbdul Taleb
09/09/2021, 9:50 PMAbdul Taleb
09/09/2021, 9:51 PMProject
- sst.json
- lib/
- ui/
- StaticSiteA/
- StaticSiteB/
- services/
...
- packages/
...
thdxr
09/09/2021, 10:19 PMProject/.build
for something like .build/static-site-environment-output-values.json
Abdul Taleb
09/09/2021, 10:26 PMthdxr
09/09/2021, 10:33 PMthdxr
09/09/2021, 10:34 PMAbdul Taleb
09/09/2021, 10:34 PMthdxr
09/09/2021, 10:37 PMthdxr
09/09/2021, 10:39 PMAbdul Taleb
09/09/2021, 10:42 PM[{"id":"project-a","path":"ui/project-a/src","stack":"dev-new-project","environmentOutputs":{"API_URL":"<https://xxxxxxxx.execute-api.us-east-1.amazonaws.com>","ENVIRONMENT":"dev","GOOGLE_MAP_API":"xxxxxxxxxxxxxxxxxxxxx","__DEV__":"true","CASE_FILES_BUCKET":"dev-new-project-filesbucketxxxxxx-xxxxxxxxx","AWS_REGION":"us-east-1","USER_POOL":"us-east-1_xxxxxxxxx","IDENTITY_POOL_ID":"us-east-1:xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","USER_POOL_CLIENT_ID":"xxxxxxxxxxxxxxxxxxxxxxx"}}]
thdxr
09/09/2021, 10:56 PMthdxr
09/09/2021, 10:56 PM"path":"ui/project-a/src"
Abdul Taleb
09/09/2021, 10:57 PMthdxr
09/09/2021, 10:57 PMthdxr
09/09/2021, 10:57 PMsrc/
is there a way you can point to just ui/project-a
?Abdul Taleb
09/09/2021, 10:57 PMAbdul Taleb
09/09/2021, 10:57 PMui/project-a
Abdul Taleb
09/09/2021, 10:57 PMthdxr
09/09/2021, 10:58 PMAbdul Taleb
09/09/2021, 10:58 PMthdxr
09/09/2021, 11:01 PM