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

Help wanted, hydration error on root layout

I'm getting this hydration error on the root layout in the body tag, I'm not sure why tbh ```tsx // src/app/layout.tsx import "~/styles/globals.css"; ...

T3 chat dns server error

despite changing dns to 8.8.8.8 or cloudfare ones , only with vpn it works @markr...
No description

Single row table

Currently I am using convex with nextjs, and that is great for 90% of my database tables, however I require some data that would be its own tables, and only have one row. Is this ok? Im using vercel to host, can I just put this in a json file?

Any idea if Horizon model is coming back to T3 chat?

The ui's it build were great and I'm missing it.

I have to do an SPA for academic purposes what would you recommend me to do?

The project must be implemented using JavaScript and HTML, following an MVC architecture. The main goal is to interact with a RESTful API and i only have 2 days to do it. Finding a good api is my main problem.

How do you test/develop your AWS Lambdas locally?

Hi, im currently implementing AWS SAM to test and develop my lambdas locally, which works wonder in every scenario BUT the one i have. My lambdas get the information i need to use from RDS instance, which is on a VPC and it seems that when running the invoke lambda, just when it tries to make the connection it times out. I Tried using AWS Toolkit as well, where i create the SAM template given the lambda i have on my AWS resources, configuring automatically the SubnetsIds on the VPC Config and everything, but it doesnt seem to work. The option i have is to work it with dummy data, but i dont know if that is the common option so i wanted to ask you the title's question. And if you could, help me to find the proper way to work this out. Thanks in advance!...
No description

[Feedback/Feature Request] Sign in with Apple on t3.chat

Hi t3.chat team! I really like what you’ve built and wanted to ask if you’re planning to add “Sign in with Apple” as an authentication option alongside Google. A lot of iPhone/iPad users prefer Apple’s sign-in for privacy and ease, and even Google’s stats show they often get more value from Apple users — so supporting Apple sign-in could help bring in and retain more iOS users. Is this on the roadmap, or are there blockers you can’t share? Thanks for considering — love the product, keep it up!...

Using tanstack query and zustand in the same project

What I need from tanstack query - Refetching stale data, retrying failed mutations, keeping previous data when paginating, a lot of other conveniences. What I need from zustand - Performant global state management, and store(memoize) computed values that I will need frequently in my app. I'm building a note taking app with built-in flashcards, so I'm only storing the notes and flashcards in my backend and retrieving them from the user. Then on the client I'm building the folder for the notes, and also grouping the flashcards with the notes. Eventually, I want to make this application offline-first. How to get the best of both worlds from t-query and zustand? ...

Vercel Build Output API

Is there a non nextjs-specific API for doing PPR-like stuff in the vercel build output api (eg. returning an initial static response from a cdn, and in the same request appending scripts that edit the page when actual content loads in, in one request). i'd try to reach out to vercel people directly about this but vercel for some reason just absolutely hates the idea of having a way to directly contact them unless you give them money 🙃...

ImageKit unable to find files from UploadThing

Hey guys, I'm trying to use imagekit.io to generate various optimized versions of images I upload to uploadthing, but when I try to access a file from uploadthing using the remote address, imagekit seems to get a 404. Looking through the docs it looks like imagekit might need to be whitelisted (https://imagekit.io/docs/integration/connect-external-storage#whitelist-requests-from-imagekit.io) but I'm not sure that's possible right? Trying to avoid having to upload files to imagekit as well as uploadthing. Anyone got any pointers/suggestions?...

Uploadthing IP addresses & Vercel bot protection

I’m currently using Vercel’s bot protection, which prevents requests from outside my app. Unfortunately, Uploadthing isn’t listed in the verified bot list (https://vercel.com/docs/bot-management#verified-bots). It would be beneficial for you to register with the submission form in the Vercel bot management documentation so Uploadthing callbacks can bypass Vercel protectin. For me the temporary solution is to add WAF rules to bypass protection, and I’m curious if Uploadthing has a similar list of IPs, similar to how Stripe does (https://docs.stripe.com/ips). Should I let the /api/uploadthing request bypass the rules or is there a better solution?...

Uploadthing - What happens to privat files when I cancel paid plans?

Hi! I have an internal app that needs to be frozen for the time being. If I cancel my sub, what happens to existing private files? Will they become public?...

React native/expo session replay

any of yall have suggestions for session replay? im currently using posthog but the replay is pretty clunky on expo/RN (works fine tho for web)

New Pro plan user. Which models have access to acquire realtime info via web sources?

I guess T3 is different to to it using API access. Do any of the models have access to retrieve realtime info from the web? For example, Grok (from it's own interface) will retrieve and even provide the reference(s) where it's getting info from (if from a source outside the model itself). Inside T3 it doesn't, and when asked if it can it says it can't. I've randomly tried a few different models yet none seem to work. Any insight?

UploadThing + Next.js (App Router) + Kinde Auth middleware → Failed to parse response (InvalidJson)

Hi everyone 👋, I’m using Next.js (App Router) with TypeScript, Prisma, and Kinde Auth middleware, and I keep hitting this error when trying to upload an image with UploadThing: UploadThingError: Failed to parse response from UploadThing server Caused by: InvalidJson ...

closure in javascript

so i am learning javascript and i came across a section that side we should generally try to avoid side effect but upon reaching the closure part it seems like every closure i have seen has side effect so my question is in what cases should we use closure ?

How to do payments on mobile?

Sorta specific question: how are we doing payments? I have an rn expo app using supabase for db/auth and a nest js backend on railway. Sometimes call straight from db for reads but backend for most complex stuff. I’ve seen people talk about how stripe is painful rn, and clerk is a nice wrapper for that. So I have 2 options: ...

Vercel & v0

Is Vercel verboten now? If not, is anyone talking about the cluster that is the v0 agentic update?

Vercel deployment route /.env did not result in redirect.

I have an application deployed via vercel and notices something somewhat concerning earlier. A log indicated that a visit to my domain with the route /.env returned a successful 200 response. I tried to recreate this behavior by visiting this endpoint to see what was returned, and if I should frantically change my environment keys, but I was redirected to a 404 not found. You can see my visit in the logs. I am curious what is behind this behavior and if I should be concerned. My .env is gitignor...
No description
Next