What is the recommended way that I can set a locat...
# sst
j
What is the recommended way that I can set a location header on 201 responses with an sst.Api?
g
afaik the only headers aws will actually manage for you are cors if you want any other headers you would have to do it via code in the attached lambda
ö
I guess you can use response mapping templates, I’m not really sure if that is available for HTTP API though. But yeah I guess doing with code seems pretty fine to me
j
Is the api url available to the API lambda's? I've seen I can get the url and pass it as an env var to the frontend, but is it available inside the API itself?
ö
I’m really not sure
But I guess you can
t
The URL is in the event that gets sent to your lambda