This repository was archived by the owner on Sep 8, 2021. It is now read-only.
This repository was archived by the owner on Sep 8, 2021. It is now read-only.
async handlers are broken #9
Open
Description
just added the vue-cli-plugin to my vue/netlify project
looks like the server gets up and running just fine after running vue-cli-service serve
Lambda server is listening on 9000
...
App running at:
- Local: http://localhost:8080/
but when I hit http://localhost:8080/.netlify/functions/hello
, it's not returning anything.
finding the issue to be returning anything from an async handler, like this example
export async function handler(event, context) {
// your server-side functionality
return {
statusCode: 200,
body: JSON.stringify({
message: `Hello world`
})
}
};
seems like this should be supported, given that it's part of the netlify lambda spec
in the meantime, the callback API is working for so I'll use that but just wanted to put it out there!
thanks :)
Metadata
Metadata
Assignees
Labels
No labels