Theo's Typesafe Cult

TTC

Theo's Typesafe Cult

Join the community to ask questions about Theo's Typesafe Cult and get answers from other members.

Join

T3 Chat

If i buy the subscription for 8$/month i can use unlimited r1,o1,claude 3.5 and many more?

Await auth()?

https://youtu.be/d5x0JCZbAJs?feature=shared&t=4501 1:15:00 Curious as to why Theo doesn't need to await auth as so: ```js...
Solution:
I'm not completely sure, but it may have become async after the Next.js 15 release

Caching loaders in React Router v7

Looked into React Router v7. The RSC support is amazing as well, and I agree with the perspective of calling db on "render". Now just wanted to know about caching? I think the biggest reason for wide adoption of React Query was for it's Cache which made it seem fast to the user. Now, is there like some example where we can combine the best of both worlds and store the loader data from route into the useQuery as a Cache? Cuz that's what I've read in a tweet showed in one of Theo's videos....

Will o3-mini get online access for t3 chat?

Just what the title is, will t3 chat o3-mini get the ability to use the web?

What font is Theo using here?

Hi folks, What font is Theo using in his current setup? Thank you...
Solution:
Looks like it is geist mono, gonna mark as solved 😛 The l on my machine won't look good the same as his turns out I had font-feature turned on in vscode...
No description

Email Verification.

In my project I am using credential login and I want to add email verification to it. How can I do it. I was going to watch a video for it about auth.js but since t3 already provides some stuff I wanted to ask it here first. What should i begin with? and is the tokens in the database schema is about verification tokens?

t3chat seems to have an error on this prompt, why could this be happening?

i have a free account and this is the chatgpt 4o mini model.
No description

Question about DNS

Hey, I was setting up a DNS server for private use. My question is if anybody knows how to use the DNS trough a vpn that is installed on another device on the network the DNS is in. Thanks in advance...

Prevent router.refresh() from remounting client components

I have the following logic: 1) Fetch data in SSR layout, pass to Client Component 2) In Client Component, useEffect(() => { ... }, []); with empty dependencies for rendering only once upon component mount. This effect checks if the passed data from the layout is valid, if it isn't, make an API request with client-side infos (need to set cookies, save ip and guest session in database). If the API request succeeds, get valid data from SSR layout with router.refresh(). ...

Deploying Bun Websocket Server

After watching Theo’s latest video about Bun, I was inspired to play around with it and wanted to test deploying a Bun Websocket server. Does anyone have recommendations on deploying and hosting a server like this? I was investigating Fly.io but I’m interested to hear recommendations. Also, if Theo has any relevant affiliate links or promos, I’d be open to check them out. Thanks in advance!

Customizing/ Making custom UploadThing dropzone

Hey yall, trying to use UploadThing for my app. I'd love to be able to fully customize it, and i saw there's some helpful parts in the docs describing how to do most of this. I'd love to add my own custom svg instead of the traditional uploadthing cloud icon. Should I just make my own dropzone and then send it to the ut api or is there a way to change out the icon?

Cloudflare secrets

anyone know if its possible to have env variables not in wrangler.toml file and use the default cloudflare workers cicd deploy?

Do you really need an ORM?

I'm designing a Next app with a postgres DB in supabase, and want to use tRPC so I have some methods I can share to other apps I might make in future (using React Native or something). I've got the db defined in supabase - there's a bunch of tools that make that super easy - then I can use supabase typegen to make the requisite types. Then I can create tRPC methods using those types. So what's the use in an ORM like prisma or drizzle? What is it adding?...

Best Practices for Managing High-Quality Product Images in a Catalog/E-commerce Website

I'm developing a product catalog website that will eventually transition into an e-commerce platform. Current specifications: - 13 products - 4-6 high-quality images per product - Images already optimized using AVIF format with WebP fallback...

what should i unit test and what shouldn't I?

Hi, a dev new to unit testing here! I'm wondering if, in a typescript project, should i test functions against runtime or not. example: ```ts function iReceiveAString(arg:string){...

How to handle both "image/x-icon" and "image/vnd.microsoft.icon"

This thing has been driving me crazy, how do you guys validate or limit accepts here? Do i really need to create a custom button / dropzone for it?
Solution:
found out how to do it, my syntax was just wrong correct way: ```...

Has upload to Uploadthing but does not return

Even though it was uploaded to storage, it took a long time to load and did not return

Extension to check tech sack

What tool does theo use to check a website's tech stack. I saw him use an extension in one of his videos but can't remember which one. Does anyone here know? Thanks

quick question about the rules

with rule #6, where it says not to add friends, is there an exception where the other person wants to be friends, or do you mean just not to spam friend requests? thanks!

pnpm build fails after create t3-app

I did pnpm create t3-app@latest qqq --CI --noGit --trpc --drizzle --nextAuth --tailwind --dbProvider postgres cd qqq Filled in .env, pnpm db:push...