Kenzo
Kenzo
TTCTheo's Typesafe Cult
Created by Kenzo on 7/9/2024 in #questions
How I can stop trpc to make calls when alt tabbing?
No description
4 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 7/8/2024 in #questions
Caching does not work with trpc in Next, what would you do?
Hi, I someone in trpc discord said: Currently documented tRPC cacheing methods (https://trpc.io/docs/server/caching) won't work as they rely on setting headers which NextJs now overrides (https://nextjs.org/docs/app/api-reference/next-config-js/headers#cache-control) And this is a big problem, what's a good alternative if I really need to cache my trpc calls? Also, maybe t3 stack should change trpc? Is there any other way to cache db calls? Next cache works only for fetch calls. @nexxel is this an issue for t3? Thanks
23 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 4/21/2024 in #questions
Handle Next <Image /> using Cloudflare?
Hi, if I upload directly the images in /public, and use <Image /> next, they'll be served via Vercel. If I upload them to R2 Cloudflare, they will still be served via Vercel, because they'll be requested, transformed, and delivered optimised. How could we cache these optimised images? If we use Ignore Query String in Cloudflare Cache, it will deliver an unoptimized image i think, and if we use Standard, it won't be cached as far as I know.. Maybe the simplest way would be to just convert the imgs to webp, and upload them to r2 and use an <img /> tag? Last month I almost maxed the image optimizations on vercel
3 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 4/12/2024 in #questions
Next not doing SSG routes?? Am I missing something?
Hi, I need to do this page ssg instead of dynamic server rendered, i dont have any dependencies so i have no idea whats happening, gemini or chatgpt has no clue either.
22 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 4/11/2024 in #questions
RANT - I hate ESLINT and I WANT TO KMS
No description
23 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 3/27/2024 in #questions
TRPC updated recently, can't use CreateNextContextOptions to implement Clerk
No description
17 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 1/22/2024 in #questions
Cheapest way to host images?
Hi, I have a site i'll release soon and it has over 100 images, is cloudinary the way to go? Thanks!
43 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 1/8/2024 in #questions
Rendering a component twice
Hi, im rendering the "Wiki" component in root "/".. but I also use it under "/wiki" Is there any way to not "rerender" it and using an unique <Wiki /> call? thanks
31 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 1/7/2024 in #questions
Default component in "/" but being able to use different routes?
Hey Let's say I have an app to read books (example) in app router. I want it to render that app default in "/", when the user clicks in a book (inside the app component) a book will show up, and the route change to "/matilda". So how it should be done? I was thinking to wrap it and put it in a layout.tsx the issue is that I don't want everytime to render the book app, for example in "/about", but yes in "/matilda". I could have that app inside the route "/app".. and matilda exist in "/app/matilda", but it won't be default in the root "/" Any idea? thanks!
9 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 9/18/2023 in #questions
Theo T3 Stack Tutorial - withClerkMiddleware soon deprecated
No description
6 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 9/18/2023 in #questions
T3 Stack Theo Tutorial - Next Auth
Hey, I'm about to start the tutorial and just noticed Theo didnt used Next Auth, Isn't it recommended? Next auth doesnt makes auth easier to handle? Not sure if follow the tutorial because I also wanted to learn how to use it
6 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 1/22/2023 in #questions
Catching an API, how?
Hi, got access to an api that will be updated like twice a day. Im not sure how I should build this, I dont want to users spam the api when refreshing my page, and also, the backend should make the call otherwise the user would discover my api key right? How I can make like a catching using next? Anyone knows any example? Thanks!
7 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 11/27/2022 in #questions
How to create static pages using T3 stack?
Title, for now I need to create only SOME static pages, but I have no idea how to set them up with next, what I need to add to make them static? Thanks!
17 replies
TTCTheo's Typesafe Cult
Created by Kenzo on 10/29/2022 in #questions
Add Admin Role to T3 Stack
12 replies