Hi, how do I do this in functional stack?: ``` ...
# help
k
Hi, how do I do this in functional stack?:
Copy code
this.addOutputs({
      ApiEndpoint: this.api.customDomainUrl || this.api.url,
    });

https://www.youtube.com/watch?v=cqzgAJvUQCg&ab_channel=ServerlessStack

t
can do
ctx.stack.addOutputs
k
oh yes I tried this and for some reason my intelisen got stuck and couldn't find this. Thanks!
is this is also alternative to this?:
Copy code
const layer = LayerVersion.fromLayerVersionArn(this "Layer", layerArn);
  const layer = LayerVersion.fromLayerVersionArn(<http://ctx.app|ctx.app>, "Layer", layerArn);
t
anywhere you see
this
you can put
ctx.stack
there