Anyone ever <have similar issues> getting routes t...
# help
d
Anyone ever have similar issues getting routes to work with
aws-serverless-express
in
sst.Api
?
t
if youlog the event the full path is there?
does this library need to be configured to look explicitly for v2 events?
d
oh… that might be the case
docs say it supports v2 and don’t make reference to needed options
does it have something do to with that fact that we aren’t using SLS to deploy?
t
I can't imagine it does. Have you tried exporting the handler the way they have it in their example?
Copy code
export const handler = serverlessExpress({ app })
d
let me try
sigh…. now it works… changed two things…
aws-serverless-express
>
@vendia/serverless-express
export const handler = serverlessExpress({ app })
thanks again!
t
ah