._perry_.
TTCTheo's Typesafe Cult
•Created by ._perry_. on 7/5/2023 in #questions
Weird type errors with next.js and drizzle
Next gives me these errors:
-
"false" is not a valid value for the "dynamicParams" option.
- "true" is not a valid value for the "dynamicParams" option.
Also, in this code the function getPostFromSlug
is returning a weird type
2 replies
TTCTheo's Typesafe Cult
•Created by ._perry_. on 7/4/2023 in #questions
Using cache with drizzle
How exactly would I use
cache
with the select
from drizzle? if it was just the method it would be simple, but it returns from
that returns where
and there's all the other methods. How the hell am I supposed to do this?46 replies
TTCTheo's Typesafe Cult
•Created by ._perry_. on 7/4/2023 in #questions
Making a enum/union type like in prisma, but with drizzle
I have this a role
pgEnum
and I want to make a enum type that is also a union type, like what happens in prisma when you make a enum
With prisma I would be able to do this on the schema
and use it like this inside my typescript
9 replies