zrilman
zrilman
TtRPC
Created by zrilman on 6/8/2023 in #❓-help
VS Code becomes unresponsive
Hello everyone, I've started to experience huge performance issues with my project that's based on create-t3-app. The issue is that after some work the intellisense and every extension becomes unresponsive. I'm aware that tRPC projects have issues with defining query/mutation props as any sometimes. But this is another level. It occurs randomly, after 5-10mins of work. The only solution for now is to quit VS Code. Then I reopen it and it crashes, after the crash I can open it and continue working normally as I usually do. Could it be possible that type aliases cause this issue? Here's how my tsconfig.json looks like
"baseUrl": ".",
"paths": {
"@pages/*": ["src/pages/*"],
"@schemas": ["./src/common/schemas/index"],
"@schemas/*": ["./src/common/schemas/*"],
"@endpoints": ["./src/common/endpoints.ts"],
"@components/*": ["./src/components/*"],
"@providers": ["./src/providers/index.ts"],
"@api": ["./src/utils/api.ts"],
"@apiRoot": ["./src/server/api/root.ts"],
"@trpc": ["./src/server/api/trpc.ts"],
"@hooks": ["./src/common/hooks/index.ts"],
"@hooks/*": ["./src/common/hooks/*"],
"@zodSchemas": ["./src/common/schemas/index.ts"],
"@constants": ["./src/common/constants.ts"],
"@utils": ["./src/common/utils.ts"],
"@typePredicates": ["./src/common/typePredicates.ts"],
"@vapidkeys": ["src/common/vapidKeys.ts"],
"@services": ["src/server/api/services/index.ts"],
"@services/*": ["src/server/api/services/*"],
"@stripe": ["src/server/stripe/index.ts"],
"@db": ["src/server/db.ts"],
"@auth": ["src/server/auth.ts"]
},
"baseUrl": ".",
"paths": {
"@pages/*": ["src/pages/*"],
"@schemas": ["./src/common/schemas/index"],
"@schemas/*": ["./src/common/schemas/*"],
"@endpoints": ["./src/common/endpoints.ts"],
"@components/*": ["./src/components/*"],
"@providers": ["./src/providers/index.ts"],
"@api": ["./src/utils/api.ts"],
"@apiRoot": ["./src/server/api/root.ts"],
"@trpc": ["./src/server/api/trpc.ts"],
"@hooks": ["./src/common/hooks/index.ts"],
"@hooks/*": ["./src/common/hooks/*"],
"@zodSchemas": ["./src/common/schemas/index.ts"],
"@constants": ["./src/common/constants.ts"],
"@utils": ["./src/common/utils.ts"],
"@typePredicates": ["./src/common/typePredicates.ts"],
"@vapidkeys": ["src/common/vapidKeys.ts"],
"@services": ["src/server/api/services/index.ts"],
"@services/*": ["src/server/api/services/*"],
"@stripe": ["src/server/stripe/index.ts"],
"@db": ["src/server/db.ts"],
"@auth": ["src/server/auth.ts"]
},
8 replies
TtRPC
Created by zrilman on 6/3/2023 in #❓-help
How to force SSL on projects using tRPC?
Hello everyone, I'm working on a project that uses create-t3-app as boilerplate. My project is hosted on heroku. I have an issue with forcing HTTPS connection. Before tRPC, I was able to solve this issue by using express-sslify like it was explained in this post on Stack overflow https://stackoverflow.com/questions/67490760/how-to-enforce-ssl-on-a-node-js-app-on-heroku Is it possible to enforce SSL on projects using tRPC?
5 replies
TtRPC
Created by zrilman on 2/28/2023 in #❓-help
Using tRPC in CRON jobs
Hey everyone, this might be a very stupid question, but is it possible to use tRPC inside a CRON job? I saw that Vercel now supports them, and since I use tRPC inside a NextJS project, I thought that it could be used. Unfortunately, I wasn't able to find anything online.
4 replies
TtRPC
Created by zrilman on 2/18/2023 in #❓-help
Input is too big for a single dispatch
7 replies