Josh
TTCTheo's Typesafe Cult
•Created by niko on 2/27/2024 in #questions
Best practice for counting streams
this is one of those times where denormalizing your db is reasonable
7 replies
TTCTheo's Typesafe Cult
•Created by DerHund on 2/25/2024 in #questions
What is t3?
boilerplate.
3 replies
TTCTheo's Typesafe Cult
•Created by dylancam812 on 2/4/2024 in #questions
PlanetScale vs Turso
you'll want to look at the differences between those to better understand the difference between the two companies
6 replies
TTCTheo's Typesafe Cult
•Created by dylancam812 on 2/4/2024 in #questions
PlanetScale vs Turso
they use totally different databases under the hood. turso uses sqlite, while planetscale uses vitess (a very complex MySQL)
6 replies
TTCTheo's Typesafe Cult
•Created by rik on 1/25/2024 in #questions
Seeding with Drizzle ORM and tsx runner
use wsl
11 replies
TTCTheo's Typesafe Cult
•Created by rik on 1/25/2024 in #questions
Seeding with Drizzle ORM and tsx runner
good debugging tip is to console log the connection keys right before you create your drizzle connection. if they are undefined, you know that they failed to get loaded in for whatever reason
11 replies
TTCTheo's Typesafe Cult
•Created by rik on 1/25/2024 in #questions
Seeding with Drizzle ORM and tsx runner
make sure that your env variables are loaded before you try to connect to the db
11 replies
TTCTheo's Typesafe Cult
•Created by rik on 1/25/2024 in #questions
Seeding with Drizzle ORM and tsx runner
the reason you're environment isn't seen is because node doesn't inheritly load your .env file, so you'll need to use something like
dotenv
in your seed script to load them11 replies
TTCTheo's Typesafe Cult
•Created by rik on 1/25/2024 in #questions
Seeding with Drizzle ORM and tsx runner
for seed scripts and such, bun is my recommendation
11 replies
TTCTheo's Typesafe Cult
•Created by Josh on 1/23/2024 in #questions
Generic type that extracts component props
Eh, this seems to work. Im happy enough with this
5 replies
TTCTheo's Typesafe Cult
•Created by Josh on 1/23/2024 in #questions
Generic type that extracts component props
5 replies
TTCTheo's Typesafe Cult
•Created by Josh on 1/23/2024 in #questions
Generic type that extracts component props
or do we just live with
anys
when doing super generic stuff5 replies
TTCTheo's Typesafe Cult
•Created by utdev on 1/22/2024 in #questions
Check for string to not be empty?
7 replies
TTCTheo's Typesafe Cult
•Created by utdev on 1/22/2024 in #questions
Check for string to not be empty?
use a zod validator
7 replies
TTCTheo's Typesafe Cult
•Created by Wiznet on 1/17/2024 in #questions
Can two frontend services point to the same base url?
but yeah
43 replies
TTCTheo's Typesafe Cult
•Created by Wiznet on 1/17/2024 in #questions
Can two frontend services point to the same base url?
if your on Vercel, technically, everything is on some random ass domain more less
43 replies
TTCTheo's Typesafe Cult
•Created by Wiznet on 1/17/2024 in #questions
Can two frontend services point to the same base url?
right
43 replies
TTCTheo's Typesafe Cult
•Created by Wiznet on 1/17/2024 in #questions
Can two frontend services point to the same base url?
go to your DNS provider or whatnot and put in the records Vercel gives you, one for landing and one for app
43 replies
TTCTheo's Typesafe Cult
•Created by Wiznet on 1/17/2024 in #questions
Can two frontend services point to the same base url?
yeah literally just domain settings
43 replies
TTCTheo's Typesafe Cult
•Created by Wiznet on 1/17/2024 in #questions
Can two frontend services point to the same base url?
a subdomain is it's own domain, it just lives under the other one on the DNS level kinda
43 replies