T
tRPC

Lambda WITHOUT API Gateway (Lambda Function URL)

Lambda WITHOUT API Gateway (Lambda Function URL)

Hhanmoos9/26/2023
Anyone know how to make this work?
Hhanmoos9/29/2023
Any input?
Nnlucas9/29/2023
This is really an AWS question, and not so easy to answer without a lot of research We can’t really support strange AWS usages here
Hhanmoos9/29/2023
Well it takes the same parameters as ApigatewayV2 and it actually makes a lot of sense for trpc because you can have a really simple deployment (just 1 lambda) and handle your whole api through that monolithic lambda thanks to trpc... so maybe worth taking a look at?
Nnlucas9/30/2023
Yes I mean API Gateway is the normal way to front your lambda and expose it to the internet. I do this at work and it brings a lot of extra functionality Exposing a plain lambda to the internet is something you will either figure out with research, or you should stick to battle tested patterns It would be the same whether you’re using trpc or not

Looking for more? Join the community!

T
tRPC

Lambda WITHOUT API Gateway (Lambda Function URL)

Join Server
Recommended Posts
In a monorepo can I have 2 packages each one with different trpc server, and use both in 1 app?I want to create 2 different APIs, and in my monorepo I have several apps, in some I want to use botHave you used electron-trpc? how does it work for you? Do you recommend it?https://www.electron-trpc.dev/ Thankstrpc error fetch failedplease helpHow to type a helper function to standardise loading and error states with a useQuery call?I am trying to standardize handling of error and loading states. I'd like to have one function/compoTypeScript Issue: router.createCaller Implicitly has Return Type "any"Hello everyone, I'm currently working on a project using tRPC and Prisma. However, I've run into an2 react renders causing 4 trpc query executesI see that my nextjs page is rendering twice on initial load. This is causing 4 executes of my querySuspend subscriptions when app is in backgroundWhen using React Native, subscriptions stay open even when the app is in the background. While this Callbacks in Consecutive MutationsI seem to be running into this issue https://tanstack.com/query/v4/docs/react/guides/mutations#consereturn type of a query endpointHello I currently have a trpc endpoint: ```ts const customInstances = api.customInstance.userCustTroubleshooting 'Type Instantiation Is Excessively Deep' Error in Next.js Project with TRPC IntegratI am using the table and pagination for listing data, just as the awesome developer did in 'https://procedure.input(z.object) is inferred as a partial (optional fields)?Have a strange case of my input types coming through as partial in procedures, cannot replicate in tHow to trigger revalidate after server action on a client componenthttps://github.com/trpc/examples-next-app-dir/blob/main/src/app/server-action/ReactHookFormExample.ttrpc openapi api memory problemHi Everyone, I am facing memory issues with trpc-openapi. I have a full-stack app in NextJS using TContext being destroyed in mutatorIm currently building an app using the t3 stack + clerk for auth I have an operation which relies oOptimizing Data Refresh with trpc in React/Nextjs? Is there a more efficient way?I'm working on a Nextjs project using trpc, and I've noticed that I'm repeating the same code for dacorsHi! Some problems with cors maybe you can help, ```readingbee.se/:1 Access to fetch at 'https://servShowing pending inside the request?I am using trpc with nextjs but when I am using hooks they're just not returning anything? Like it mOutput properties missing on frontend results (Type Infer)My trpc client is inferring the type without some properties from the object (See images for explen