Skip to content

Conversation

@saenyakorn
Copy link
Member

Why I did

The old server function manually aggregated all API by itself which is hard to maintain and read

What I did

  • Fix Server Function RPC logic and its type
  • Fix ApiRoute spec from intersection to separate object.

Note

  • Somehow, builder.endpoints(...) type is broken when handlers returning a pure status number. Workaround is adding as const after the response status number.

@changeset-bot
Copy link

changeset-bot bot commented May 16, 2025

🦋 Changeset detected

Latest commit: 82a92ad

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@saenyakorn saenyakorn changed the title [BRV-89] Server Function RPC [DRIZZ-39] Server Function RPC May 19, 2025
@saenyakorn saenyakorn merged commit 882e7eb into main May 19, 2025
1 check failed
@saenyakorn saenyakorn deleted the yu/feat/rewrite-server-function branch May 19, 2025 10:08
This was referenced Jun 10, 2025
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.

1 participant