Jim
Jim
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Jim on 3/28/2024 in #questions
typescript globals: @types/web overrides fetch
ok.. I can force ts to read from the dom library by prefixing the file with
/// <reference lib="dom" />
/// <reference lib="dom" />
4 replies
TTCTheo's Typesafe Cult
Created by Jim on 3/28/2024 in #questions
typescript globals: @types/web overrides fetch
so basically, typescript is using the fetch from @types/node
4 replies
TTCTheo's Typesafe Cult
Created by chillihero on 3/8/2024 in #questions
Good (cheap) alternatives to Planescale
I've just migrated to Neon, with drizzle it's been pretty easy to migrate, since its all typesafe I can see where features are mismatched between mysql and postgres. Postgres having a larger ecosystem is something to consider too (payload cms, medusa ecommerce, posthog data store all use postgres). Also, one thing I like about Neon is I can have as many databases as I want under 10 different projects, if you're freelance like me seems like I'll be able to put all my clients under one paid account.
9 replies
TTCTheo's Typesafe Cult
Created by chillihero on 3/8/2024 in #questions
Good (cheap) alternatives to Planescale
webdevcody put up a vid on how to use railway to setup and migrate your mysql db https://www.youtube.com/watch?v=9K5Hi03AJJ4 since ps uses mysql there aren't that many other 'DaaS' that you could just drop in without changes to your schema. I'm thinking of either going the VPS route or just using NeonDB and switching my schemas to postgres
9 replies
TTCTheo's Typesafe Cult
Created by Jim on 11/8/2023 in #questions
importing drizzle schema client side error [nextjs monorepo]
Just have to transpile the package! Just realised the webpack error was throwing on a typescript character
const nextConfig = {
transpilePackages: ['db'],
}
const nextConfig = {
transpilePackages: ['db'],
}
Awesome
4 replies
TTCTheo's Typesafe Cult
Created by Jim on 11/7/2023 in #questions
enum status table schema
ENUM looks like its the way, cheers
4 replies
TTCTheo's Typesafe Cult
Created by Jim on 11/7/2023 in #questions
enum status table schema
I suppose im looking for a way to treat data on the table as a schema, with the source of truth in a schema file, which would need to be migrated if anything changed. Drizzle for data... Is this silly?
4 replies
TTCTheo's Typesafe Cult
Created by Jim on 11/3/2023 in #questions
Workflow: use production database for preview builds?
Maybe aswell as a live dev preview I should also make a staging branch which mirrors the dev, just with production env vars...
5 replies
TTCTheo's Typesafe Cult
Created by Jim on 9/25/2023 in #questions
data branching planetscale
thank you @JLN ill check out those commands
4 replies
TTCTheo's Typesafe Cult
Created by Jim on 8/20/2023 in #questions
Get image size using UploadThing
3 replies
TTCTheo's Typesafe Cult
Created by Jim on 8/6/2023 in #questions
Tailwind Theming using CSS variables
Yeah its a hard one to balance, I think what shadcn/ui is trying to offer is 'best practices', and using theme colours is the way to go. I think if they stuck with referencing tw colours direct, you'd see a lot of people just replacing the colours and not referencing them to a theme, which I think is fine, but just not that scalable. Maybe they could add another cli option 😂
8 replies
TTCTheo's Typesafe Cult
Created by Jim on 8/6/2023 in #questions
Tailwind Theming using CSS variables
8 replies
TTCTheo's Typesafe Cult
Created by Jim on 8/6/2023 in #questions
Tailwind Theming using CSS variables
https://github.com/shadcn-ui/ui/issues/215 its a bit of a pain point for a few people it seems
8 replies
TTCTheo's Typesafe Cult
Created by Jim on 6/23/2023 in #questions
Migrating next app from [client -> ts-query + clerk -> supabase] to planetscale
4 replies
TTCTheo's Typesafe Cult
Created by IsoPhoenix on 5/31/2023 in #questions
How is realtime DB syncing accomplished without Firestore/Supabase?
Thanks for clearing that up for me though, I was obsessively looking for a solution that wasnt there lol
20 replies
TTCTheo's Typesafe Cult
Created by IsoPhoenix on 5/31/2023 in #questions
How is realtime DB syncing accomplished without Firestore/Supabase?
Yeahhh, im sure they'll figure a solution out in the coming months, I think for now I'll have to stick with supabase and miss out on the cool forking action :~)
20 replies
TTCTheo's Typesafe Cult
Created by IsoPhoenix on 5/31/2023 in #questions
How is realtime DB syncing accomplished without Firestore/Supabase?
All good!
20 replies
TTCTheo's Typesafe Cult
Created by IsoPhoenix on 5/31/2023 in #questions
How is realtime DB syncing accomplished without Firestore/Supabase?
Thanks for the response keef. I was looking at the pub/sub services yesterday but didnt understand how they worked looking at the examples. Since there is no CDC/webhooks on planetscale how do they know when theres been an update. I suppose maybe you could run a seperate db which you call anytime you make updates to a pscale table and listen to that instead 🤔
20 replies
TTCTheo's Typesafe Cult
Created by IsoPhoenix on 5/31/2023 in #questions
How is realtime DB syncing accomplished without Firestore/Supabase?
I'm running into the same issue with pscale. https://github.com/planetscale/discussion/discussions/119 The only work around is polling, which is blunt and expensive. I'm surprised realtime hooks aren't in demand. My use case is digital signage dashboards and kiosk apps so maybe i'm in a minority, but I would have thought listening to table updates would have a wide scope of uses. Did you find any solutions? @IsoPhoenix
20 replies