trpc openapi api memory problem
Hi Everyone,
I am facing memory issues with trpc-openapi. I have a full-stack app in NextJS using TRPC. When I visit the /openapi route to visit the swagger documentation the server memory limit is reached and the server crashes. Please see attached images.
Can someone please help me out with this? Thanks!
3 Replies
Provide environment Information System:
Cloud service provider: Render
OS: 22.04.1-Ubuntu
CPU: AMD EPYC 7R13 Processor
Memory: 2.00 GB
Binaries:
Node: 18.12.1
Packages:
@trpc/client: 10.5.0,
@trpc/next:10.5.0,
@trpc/react-query: 10.5.0,
@trpc/server:10.5.0,
next: 12.1.6,
react: "18.1.0",
swagger-ui-react:^4.15.5,
trpc-openapi:^1.0.0,
Code:
/pages/openapi.tsx
js
/pages/api
pages/api/openapi/[...trpc].ts
js
Is there a way I can paginate/lazy load the /api/openapi.json?