Files
webstudio/packages/trpc-interface
Bogdan Chadkin e1fa2075a5 Enforce server constraints for packages (#1507)
Ref
https://remix.run/docs/en/1.15.0/guides/constraints#server-code-pruning

Remix use NAME.server.ts extension to enforce omitting module from
client bundles. Though we heavily used `/server` in packages which had
no affect and blocked us in using a few node apis which were not
polifilled with empty modules while bundling for client.

Here I replaced `/server` with `/index.server` and removed all legacy
server entry points which are not longer necessary with new typescript
resolution.
2023-04-22 09:14:14 +07:00
..
2023-04-19 16:54:54 +04:00

trpc-interface

  • trpc-interface can implement various TRPC server routers.

  • it can act as a proxy for TRPC services implemented in any other apps (those services must have the same API interface).