Gabriel
Gabriel
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Tioluwani Olubunmi on 8/3/2024 in #questions
504 Gateway Timeout Error on Vercel
Vercel has a limit of 10 seconds for each serverless function execution. You are probably exceeding these limits. Mongo shouldn’t be taking this long to execute, for simple functions
3 replies
TTCTheo's Typesafe Cult
Created by nikens on 4/22/2024 in #questions
Using `next-international` for i18n support breaks my tRPC config.
One question: why are you using next-international, in the midst of other packages?
7 replies
TTCTheo's Typesafe Cult
Created by nikens on 4/22/2024 in #questions
Using `next-international` for i18n support breaks my tRPC config.
7 replies
TTCTheo's Typesafe Cult
Created by nikens on 4/22/2024 in #questions
Using `next-international` for i18n support breaks my tRPC config.
Hi! I am using next international as well. I place /api/ outside of [locale]
7 replies
TTCTheo's Typesafe Cult
Created by DYELbrah on 3/6/2024 in #questions
Inside create t3 app with Drizzle, why do we pass the database through ctx on each procedure?
Id like to know this too! I believe it is related to being able to use the correct db instance for each procedure. In prisma for example it's possible to create multiple extensions where each prisma client has a specific functionality. Maybe this is also true for drizzle. It's a good question though. Don't know the answer
11 replies
TTCTheo's Typesafe Cult
Created by KO on 1/13/2024 in #questions
Theo uses api.posts.getAll.useQuery() in T3 tutorial video, but T3 app only has .query() calls.
In rsc or client component?
18 replies
TTCTheo's Typesafe Cult
Created by theblessed on 1/13/2024 in #questions
Use of Next JS Server Actions in a project
This used to have react native. But not anymore
7 replies
TTCTheo's Typesafe Cult
Created by theblessed on 1/13/2024 in #questions
Use of Next JS Server Actions in a project
I have a repo with this implemented at least once: https://github.com/dBianchii/kodix-turbo
7 replies
TTCTheo's Typesafe Cult
Created by theblessed on 1/13/2024 in #questions
Use of Next JS Server Actions in a project
This is how I try to do it
7 replies
TTCTheo's Typesafe Cult
Created by theblessed on 1/13/2024 in #questions
Use of Next JS Server Actions in a project
You can use your main api routes as tRPC endpoints. These will have your main functionality and logic. Then, your server actions can become like middlewares, that can internally call other multiple procedures if needed. For react native, still use just tRPC
7 replies
TTCTheo's Typesafe Cult
Created by AldiBoi on 1/14/2024 in #questions
Trpc useQuery keeps refetching even with no errors (I am getting back data every time)
If you shared how your component looks like maybe we could help more.
6 replies
TTCTheo's Typesafe Cult
Created by KO on 1/13/2024 in #questions
Theo uses api.posts.getAll.useQuery() in T3 tutorial video, but T3 app only has .query() calls.
In this case you are importing from server. If that’s what you want, you can use it like that no problem in the server component
18 replies
TTCTheo's Typesafe Cult
Created by KO on 1/13/2024 in #questions
Theo uses api.posts.getAll.useQuery() in T3 tutorial video, but T3 app only has .query() calls.
There are two apis in App Router. One is for server and the other is a tRPC hook that you can use in server components
18 replies
TTCTheo's Typesafe Cult
Created by Yoers on 1/5/2024 in #questions
Correct way to access session data, using server & client components
Hi, if anyone has best practices tips as well, I’d love to know. I have made a PR 2 months ago on my repo to use session drilling from server components https://github.com/dBianchii/kodix-turbo/commit/9a1ba42c5bd5f5f8dcdaafe80e3fe15487a9662c Been using just this since. (No session providers)
15 replies
TTCTheo's Typesafe Cult
Created by Min on 11/15/2023 in #questions
Streaming Limits with Vercel
Yes, but this requires some external service, correct? Now it's called Accelerate and not Data Proxy if I am not mistaken @Anonymous_hacker
8 replies
TTCTheo's Typesafe Cult
Created by Aidam on 11/16/2023 in #questions
NextAuth google provider sometimes doesn't fetch image
Might be related to google servers?
6 replies
TTCTheo's Typesafe Cult
Created by Aidam on 11/16/2023 in #questions
NextAuth google provider sometimes doesn't fetch image
If the user image url is safely stored in the database, then it has nothing to do with NextAuth. I get thi error sometimes too
6 replies
TTCTheo's Typesafe Cult
Created by Min on 11/15/2023 in #questions
Streaming Limits with Vercel
Prisma
8 replies
TTCTheo's Typesafe Cult
Created by Min on 11/15/2023 in #questions
Streaming Limits with Vercel
That’s if you are not using prisms
8 replies
TTCTheo's Typesafe Cult
Created by Aidam on 10/21/2023 in #questions
Run additional code on user creation
Is that api you are importing from client or server? It looks like you are using useMutation, which is a react hook. You want to use the api from the server
11 replies