Skip to content
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

fix: tRPC example to support 11.x types #1103

Merged
merged 3 commits into from
Sep 27, 2024
Merged

fix: tRPC example to support 11.x types #1103

merged 3 commits into from
Sep 27, 2024

Conversation

chamathpali
Copy link
Contributor

@chamathpali chamathpali commented Sep 19, 2024

Updated the tRPC example guide to support the latest version of tRPC 11.x (next).
Accepted types of CreateAWSLambdaContextOptions has changed to

export type LambdaEvent = APIGatewayProxyEvent | APIGatewayProxyEventV2;

Reference:
https:/trpc/trpc/blob/next/packages/server/src/adapters/aws-lambda/getPlanner.ts#L8
https://trpc.io/docs/server/adapters/aws-lambda#a-word-about-payload-format-version

@jayair
Copy link
Contributor

jayair commented Sep 20, 2024

Thanks!

Can you also make a change to the example app for this: https:/sst/ion/tree/dev/examples/aws-trpc

I can test and merge it.

@chamathpali
Copy link
Contributor Author

@jayair Updated the PR with the latest trpc example

@jayair
Copy link
Contributor

jayair commented Sep 27, 2024

Thanks!

@jayair jayair merged commit 873a292 into sst:dev Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants