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

Using Obsidian Zettelkasten for Software Dev

I'm finding it a little tricky and overwhelming to keep track of all the areas that I need to know about in terms of Full Stack Javascript engineering. Currently job hunting so a lot of the areas that I'm rusty on are being uncovered in rapid succession. I was wondering if anyone had any experience in using the Zettelkasten method for learning about different considerations and tech? Obviously I won't know everything about everything, but even just some 'here's the basics to consider' would be great across the stack....

Why double auth call on server pages?

Why do server pages call auth() after calling a router but before page render if the router context already checks for auth? ```ts export default async function Home() { const hello = await api.post.hello({ text: "from tRPC" }); // this calls auth internally also...

Is UploadThing's UploadButton having refresh issues in 7.x?

I was going through Theo's 0-production video recently, but since it is a year old, I was trying to modernize it a bit with a more current package version. I created an Issue on pingdotgg/uploadthing regarding UploadButton refreshing my screen while not letting me select an item to upload. Wasnt sure what is going on about it. I tried on Chrome and Safari. url: https://github.com/pingdotgg/uploadthing/issues/1190 I am trying to understand what im doing wrong. It seems like it is in part a Chrome Issue, but the refresh seems odd too. Trying to think of what is different between 6 and 7 that might be causing the issue. When testing on Safari, it will open the file picker but refresh the page. ...
Solution:
Isolated the button to an MVP and it works fine. Looked like it was related to Clerk. Looked at the underlying code, and noticed auto-complete didnt have it as <SignedIn> but instead <SignInButton> so it was attempting to conduct a sign in that wrapped the UploadButton. This is working, so im going to close this ticket...

Example stripe implementation in real project

Hello coders, I'm going through my first Stripe phase, and I really need help. I need an example project which includes: ...

How do you show implementation errors?

I have problem in my project, that I dont have good way to show if something went wrong and if it happens its hard to see where is the root cause. To fix the erros, I needed to check console logs but those are always messy and hard to read and doing it (nooby way) something like return <div>Error<div> when something being done wrong with my implementation, I cant see it as optimal solution.

Docs for cursor context

I am using Cursor and would like it if I could use the UploadThing docs as context for it to help me deploy my stuff. I could go through the html on UploadThing.com but that would be a really big headache. Is there anyway you could send me the docs in a clean format?...

long context/message/file support

if I have a huge code base in a single file similar to llms.txt, will Gemini 2.5pro model hold that all in the context to grill down? I mean on http://gemini.google.com it would work, but same would work on http://t3.chat or not? This will help me continue with the pro plan and make the most out of it because my primary use case is sending large llms.txt and grilling down on various topics ...

Uploadthing fail to upload with no error on vercel production and preview builds

I'm trying to integrate Uploadthing into my new webapp, and I have this issue where the upload is stuck at 100% and then stuck (with the request at pending in the network dev tools) in both preview and production builds on Vercel (but not on local production build) at the /dashboard route for me which is protected by Clerk auth if that makes any difference. Also added the UPLOADTHING_CALLBACK_URL env var as well as it is mentioned in FAQ for a possible issue but that did not change anything. If...
Solution:
Well, solved it. appearantly it was isDev: true that broke it. should probably not be used in production anyway (and in my case was left there by mistake), but still weird that I got no fail or error at all.

A simple plan to increase your userbase and profits while benefitting users as well

I have made you a personalized referral system (and some other improvement suggestions) It is similar to what other AI tools use but this one is more improved for an LLM Aggregator. If you implement every feature that I suggested (whole plan is in an image), you will probably increase your userbase and profits much faster....
No description

DnD Kit

Anyone here have experience with DND Kit that may be able to help me solve a bug? The issue is on click events not working properly. If anyone does have experience with dnd kit and can help I would really appreciate that!

Give t3Chat Specific Sources

Can i ask the models with search feature (or other models) to use specifc webpages to search in as additonal sources, like fandom pages to get more lore accurate results. If yes how ?...

Monetize vs public repo

Hey, guys, I currently have idea for website (or maybe extension) and I have it for while in progress, but now I was thinking about if I should keep the project private and try monetize from it or make it public, so I will have decent project in cv (The reason why I am asking this is because I dont I will came up with another good idea that people can would really use) Any tips what should I do and why?...

UT: Issues with completion callback in dev

Everything is working fine in production, but I'm unable to get the onComplete callbacks to work properly in dev. I think I'm getting close, but I got the following error in console. I reached out to support via email, but I linked this thread since its a bit easier to communicate and share code via discord opposed to email. Error: Something went wrong. Please contact UploadThing and provide the following cause: "TypeError: records[0].serverData is undefined"...

Weird encounter using T3

I asked gemini 2.5 pro to translate this image thats from a screenshot of a presentation and... it gave me this response. I am struggling to understand why or how I could even get a response like this. If anyone could help me understand or clarify, that would be great 😭 this was so strange and scary to see this.
No description

NextJS customId support in /api/uploadthing route

Hi everyone, I've checked the docs and I can't find the correct way to use customId values in nextjs app router. @theo (t3.gg) what an I doing wrong? Here is my core.ts:...

Are there any tools/articles/repos that could teach me the inner workings behind web app builders?

Hi, I am interested in learning more about how products such as Cursor, Lovable, Bolt and other similar tools, work. Could anyone point me in the right direction?
Solution:

Why is server-trpc's createContext react-cached?

Hello Why is createContext (in src/trpc/server.ts , which is used to create a context for every trpc call from server-side) cached per SSR request (cache(async () => ...)? I have no issue or bug. I just wanna learn, please....

CORS error in react vite and express

When uploading an image it starts correctly then I get this cors error. I've this cors settings in vite.config.ts ``` proxy: { '/api': {...
No description

t3 env vercel deployment

attempting to use t3env and keep having build errors for vercel, any help would be appreciated next config below `import {createJiti} from 'jiti'; import { fileURLToPath } from 'node:url';...
Solution:
Resolved with the next.config.ts below got the import syntax from create-t3-app boilerplate code `/**...
No description

Steam Provider with nextauth

Hey im trying to figure what the best way is to implement steam openid with nextauth - does anyone have experience with this?