Did anyone get PlanetScale + Prisma (or just Prism...
# help
k
Did anyone get PlanetScale + Prisma (or just Prisma) to work with SST?
t
We have an example in our repo
k
Oh nice sorry did not see that
Ok found it, I would have wasted a week or so trying to figure all that out 😂
t
I wasted a week for you 😄
k
😂😂
One thing I noticed, because I am using macOS the included file is mac specific, I use seed for the build and deploy so maybe that won’t be an issue just wanted to point that out.
@thdxr looks like this is an issue… • When using ARM arch.
Copy code
Query engine library for current platform \"linux-arm64-openssl-1.0.x\" could not be found.
• When using X86
Copy code
Query engine library for current platform \"rhel-openssl-1.0.x\" could not be found.
t
this is a really annoying thing, I think you need to pass an env variable when doing
yarn
so that prisma installs the right binaries
I can't remember where it was
just fyi prisma is going to kill your cold start time as well
k
Welll that sucks… 😂
t
Copy code
PRISMA_CLI_BINARY_TARGETS=rhel-openssl-1.0.x yarn
k
thanks man
I can probably also just set
PRISMA_CLI_BINARY_TARGETS
in seed env
Hm… is there a way to remove node caches in SEED without changing the dependencies 😂
BTW The only reason I am not using https://github.com/koskimas/kysely is because I do not really want to write my own migrations 😂
f
@Kujtim Hoxha yeah u can trigger a force deploy, that will clear the cache.
k
Ok awesome thanks 🙂