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

Looking for a buyer - 10gb/s server.

Im selling a server for 2months for 1500$ - crypto only (XMR preferred) - EU based 2x Xeon E5-2680 V4, 3.30GHz Turbo, 28 Cores, 56 Threads 256GB DDR4 1x 4TB SSD 10Gbps Dedicated Unmetered Bandwidth...

Auth in middleware

Obviously there has been a lot of recent discussion about authentication in next middleware. I’ve gathered that the general sentiment is that it is best to confirm auth closer to the data. I’m working on my first next app now, so that is the practice I’m following. But as im integrating uploadthing into my project, I see them recommending auth checks in the uploadthing middleware in the docs. So I’m a bit confused on when it is and isn’t ok to check auth in your middleware. Is it always just as an optimistic check?...

Passing TRPC fetched data to child via props - Type definitions?

Hi, when I fetch data and loop through it in the same view - the Type for the children of the array are automatically inferred thanks to TRPC
No description

Does T3 chat anonymize user chat before sending to the api?

I am unable to find the privacy section of t3.chat if someone can give me the link it will be awesome.

Is NextJS just slow?

Not gonna lie, I've been a long time vue/svelte dev, but lately have wanted to give react a shot and decided to go with t3. I've just been messing around, and the HMR can take anywhere from 2-10 seconds, often not triggering anything at all and I have to refresh the browser. This is not a rare occurrence, and I'm not exaggerating. It's most of the time. I'm not sure why but it's just so dogshit, the DX is absolutely terrible from this alone. Vue/svelte reload near instantly, compile fast, and...

expo web uploadThing error

hello everyone. was trying out uploadthing for my expo project which i'm building for both native and web. when i use the useDocumentUploader, every works fine on mobile. on web i get an error where i was advised to report it, cause it's hindering me from successfully uploading a file. ``` UploadThingError: Something went wrong. Please report this to UploadThing. at Object.INTERNAL_DO_NOT_USE__fatalClientError (entry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.routerRoot=app&resolver.environment=client&transform.environment=client:338615:54) at entry.bundle?platform=web&dev=true&hot=false&lazy=true&transform.routerRoot=app&resolver.environment=client&transform.environment=client:343246:69...

How to theme with Tailwind v4?

I've followed the setup instructions for tailwind v4. I am able to style the UploadButton and UploadDropzone containers like this: ``` <UploadDropzone className="..."...

Files uploaded, but client and server never reach onUploadComplete

My files are uploading successfully to UploadThing (I can access them in dashboard), but the loading spinner goes indefinitely on client. onUploadComplete is not being triggered on server or client, and onUploadError is not being triggered clientside either. I had everything working fine the other day on setup, not sure what I did to fuck up. No errors in log on client or server. Any help is appreciated, thanks! next: 15.2.3...

Openai integration

How does chatgpt and others chat apps do in the ui to display the canvas from the responses while streaming???

Error when using npm create t3-app@latest

I just got this error when using npm create t3-app@latest . and npm create t3-app@latest (name the folder myself) ...
No description

user data encryption

how do people usually do user data encryption? I would like to basically encrypt (or hash) everything users save in the database, is saving a decryption key in environment vars on vercel/netlify etc. good enough? Or are there other ways that might be more suitable? (this is data I need to decrypt in the front-end, not passwords or anything like that, just user generated content, think like notion notes)...

Setting up simple monorepo with 'shared' folder

Hi folks, thanks in advance for any help. I'm trying to set up a monorepo structure in which I have three components, each stored within their own folder: - 'backend' - 'frontend' ...

Significant slow performace (in dev) with create t3 app

I recently tried out the create t3 app. I am using neon, next-auth, prisma and app router. I did not change any of the initial code, only added some env. I deployed it to vercel, and simple posting and retrieving latest post will take at least 3-4 seconds. Any clarification on this will be much appreciated.

How to properly add Google Sign In to existing application that has email login implemented already?

Hi, In my app I already have a working login system for email + password sign in. Now I would like to add Google Sign in as well. I already managed to allow user sign in with google but I wonder how I can properly handle user creation in the database in regards to username....
Solution:
Hey! 👋 For Google Sign-In, you can't get a unique username directly from Google. Here's the deal: Make username optional: In your User database model, allow the username field to be null at first. Also add a googleId field (unique) to link accounts. A isCompletedProfile flag is helpful too. Google Sign-In: Frontend handles the Google login flow. Backend verifies the token from Google (super important!), then gets the user's Google ID (sub) and email....

Fetching User Session Data on the Client Side with useSession

Hello! I'm having trouble retrieving the logged-in user's information on the client side. I need the user information for my component, but how should I fetch the current user's session data? Here is my code: ```ts...

T3 CreateApp globals.css file structure

Hello, I was wondering why in the create-t3-app the styles/ folder is placed in the src/ folder and not in the src/app/ folder? I was having some issues with my tailwindcss not working and when I looked at the docs for nextjs setup it says the style sheet should be in src/ and after moving it there it fixed my tailwindcss

Buying domain

Hey fellow web devs! 👋
I'm about to buy my first domain from Namecheap and had a couple of beginner questions:
1️⃣ How easy is it to connect a Namecheap domain to Vercel and Render? ...
Solution:
Haven't used Render, but with Vercel it's very easy to connect a domain to your project. You'll just have to add one or two DNS records to your domain via the Namecheap dashboard. I use the Zoho Mail free plan. You can connect one custom domain and create up to 5 users....

How am I supposed to learn to code when I have nothing to code?

I find coding fun and want to get better at it but I do not have anything to code. What do I do?
Solution:
Look for problems that you could solve with software (your problems, not other's) or find trends in the coding space that really interest you and figure out how to build projects that embrace them.

"Apps vs web", which video does Theo discuss this?

Screenshot is just a quick glance in this particular video https://youtu.be/cMApO0UhqEs?si=W6TCFek4pJxbKAMX&t=150 (I'm new to theo's channels)
No description