I was wondering what is the best way to consume the Pulumi deployment result in my application code. To give a concrete example, suppose my Pulumi stack generates the following url for an API Gateway endpoint
[Output]
public Output<string> APIEndpoint { get; set; }
This url is to be consumed by JavaScript code stored in a S3 bucket. The JavaScript is bundled by webpack during build and then stored into a S3 bucket also by Pulumi during deployment.
What is the best way to pass this url to the front end JavaScript bundle code?