-
Notifications
You must be signed in to change notification settings - Fork 994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation nit: Serverless functions #3550
Comments
BackgroundLooping in @dthyresson for a better explanation about this. The short version is that:
The important first step (and massive lift) was migrating the GraphQL server to Envelop/Helix, which is still AWS Lambda but can now be made agnostic. The functions have been a secondary priority Next StepIt seems like there's some buggy behavior we need to diagnose and resolve near-term, regardless of how we make any/all functions provider agnostic in the future. |
@cannikin Does the new generator template also support Edit: Looks like it does:
|
That said, the core issue is that the
import type { Handler } from 'aws-lambda' |
Oh, I see. Ok, I need to think on this a little. Should we:
|
It does! It doesn't currently have the ability to pass flags and select from other templates, but I don't see why it couldn't... |
That's an interesting thought. 🤔 |
A question I kinda wanted https://redwoodjs.com/docs/serverless-functions to answer: Why do the generated files from the serverless generator seem to tie to aws?
( I think I know the answer is that in general aws-lambda's API style must be the default for many other cloud providers but it wasn't on vercel + next's nor azure's which I at least have some experience with. Figured the docs would have the answer there. )
Related, perhaps
yarn rw g functions
can check for@types/aws-lambda
in node_modules and recommend it when in TypeScript mode? The IDE doesn't show errors that it's missing (it justany
'd) and installingaws-lambda
doesn't include those types (because it's a different module). Ideally Redwood could inline theAPIGatewayEvent
types into@redwoodjs/api/webhooks
instead then use those.The text was updated successfully, but these errors were encountered: