Sakar
06/09/2022, 3:07 PMthdxr
06/09/2022, 3:18 PMstack.addOutput({ MY_API: api.url })
you can print out any thing you want to seeSakar
06/09/2022, 3:23 PMthdxr
06/09/2022, 3:33 PMSakar
06/09/2022, 3:54 PM@thdxr i did this import { Api } from "@serverless-stack/resources";
export function MyStack({ stack }) {
const api = new Api(stack, "api", {
routes: {
"GET /": "functions/lambda.handler",
},
});
stack.addOutput({ MY_API: api.url });
} is this correct?Sakar
06/09/2022, 4:01 PMthdxr
06/09/2022, 4:03 PM