Skip to content

Enhancements to single-function tRPC API. #298

@JoshuaToth

Description

@JoshuaToth

Description

While the default behavior for the TRPC API is to have one lambda per API endpoint, it's common to only have a single lambda proxy handler for the API, reducing the infrastructure overhead and centralizing the API. There is instructions on how to achieve this within the documentation by editing the generated API construct. But it would be great to:

  • Be able to vend this with an option without requiring additional changes to support this behavior.
  • Fix the policy overload issue caused by this code here where the single handler function policy becomes too large ones a set amount of API endpoints has been reached.

Motivation

I personally have a strong preference for these sorts of API's to be single proxy functions, and very much dislike having 50+ individual lambdas for a single API. I would appreciate it being officially supported.

Suggested Implementation

No response

Contribute to feature

  • I'd be willing to implement this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions