Is there a way to utilize <lambda function URLs> w...
# help
m
Is there a way to utilize lambda function URLs with sst? I've got an entire apigateway in my stack just for a single webhook, it'd be nice to rip it out and just use this.
f
Hey @Matt k I just pushed out an update to make this easier. In v1.2.23, u can do this:
Copy code
new Function(stack, "MyFunction", {
  handler: "src/lambda.main",
  url: true,
});
m
is there a way to get the actual URL so i can pass it down into other parts of the stack?
f
function.url
m
heheh ok.. gonna try it out
worked great! did you just happen to have that already laying around in a feature branch and I just brought it up at the perfect time?
f
haha nahh.. just implemented it
m
nice! you rock!