Hi, after running npm run start , the https:// en...
# help
s
Hi, after running npm run start , the https:// endpoints are not shown. Only the console endpoints is shown. am I to configure any thing?
t
if you do
stack.addOutput({ MY_API: api.url })
you can print out any thing you want to see
s
Hi, @thdxr can u tell me where add the above line ?
t
in the stack where you define your API
s
Copy code
@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?
@thdxr thank you I got it working?
t
yep, we'll fix our starters so they include this