im aware of the sst.staticSite here: <https://docs...
# help
e
im aware of the sst.staticSite here: https://docs.serverless-stack.com/constructs/StaticSite. but im a bit stumped on how to pass the output to the expo app.
f
Yeah, you can’t use StaticSite for mobile apps.
You’d have to add the Cognito User Pool Id as a stack output, ie.
Copy code
const auth = new sst.Auth(...);
this.addOutputs({
  USER_POOL_ID: auth.cogitoUserPool.userPoolId,
});
And then if u run
sst start
or
sst deploy
, the USER_POOL_ID will be printed out in the terminal
You can then add it to a
.env
file in ur expo app.
e
i got that, so i would have to manually update an .env file anytime i deploy the AWS stack?
or just when i destory-recreate the API gateway?
j
Yeah currently it doesn’t auto update. But if your .env file only has the API endpoint then you’ll only need to update it when it gets recreated.