playsonmac
Explore posts from serversDTDrizzle Team
•Created by playsonmac on 1/12/2025 in #help
[Solved] drizzle-seed autocomplete not working if there are enums or zod objects
Not sure which tag to use for
drizzle-seed
.
I'm trying to seed my database and I was surprised that I wouldn't get table autocomplete inside the seed function when the schema is in different files. Whenever I import * from "./single-file"
everything seems to work. Curiously when I deconstruct the import for a specific table, I lose the autocompelte. The tsconfig is in the comment below.
Case 1 (works) - import * as schema from "./schema/contexts"
Case 2 (doesn't work when the schema is distributed in different files) - import * as schema from "./schema/"
Case 3 (doesn't work when the import is deconstructed - import { contexts } from "./schema/contexts"
Would appreciate any ideas, thanks!4 replies
DTDrizzle Team
•Created by playsonmac on 1/10/2025 in #help
drizzle-zod 0.6.1 has errors on each createXyzSchema
Hey everyone,
Does anyone know how to handle this error:
I'm getting it on
createSelectSchema(table)
, createUpdateSchema(table)
and createInsertSchema(table)
Thanks!3 replies
DTDrizzle Team
•Created by playsonmac on 11/7/2024 in #help
Supabase SSL - ENAMETOOLONG when adding sslrootcert to dbCredentials url
I'm trying to connect to my supabase with ssl-enabled using drizzle-kit but I keep on getting ENAMETOOLONG.
I'm encoding the certificate into the connection url, but it seems like I'm reaching the limits of path length.
My code is literally the same as was posted by budivoogt:
https://github.com/orgs/supabase/discussions/18710#discussioncomment-10614735
"I got this working with Drizzle as follows:"
Ideally, I'd like to be able to have the certificate as an env (yeah, tired that, still the same length issue) so that a cloudflare worker which doesn't have acccess to the fs can connect.
Any ideas on how to go around this?
1 replies
CDCloudflare Developers
•Created by playsonmac on 11/1/2024 in #pages-help
Nextjs multi-zone deployment?
Do pages support nextjs' multi-zone routing?
If so, is there an article or a repo showcasing how one can host both an app (and a blog for example) on the same domain using cf pages and two different instances of nextjs?
1 replies