https://serverless-stack.com/ logo
#help
Title
# help
k

Kujtim Hoxha

04/07/2022, 12:25 PM
Did anyone get PlanetScale + Prisma (or just Prisma) to work with SST?
t

thdxr

04/07/2022, 12:26 PM
We have an example in our repo
k

Kujtim Hoxha

04/07/2022, 12:29 PM
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

thdxr

04/07/2022, 12:54 PM
I wasted a week for you 😄
k

Kujtim Hoxha

04/07/2022, 12:54 PM
😂😂
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

thdxr

04/08/2022, 1:44 PM
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

Kujtim Hoxha

04/08/2022, 1:46 PM
Welll that sucks… 😂
t

thdxr

04/08/2022, 1:46 PM
Copy code
PRISMA_CLI_BINARY_TARGETS=rhel-openssl-1.0.x yarn
k

Kujtim Hoxha

04/08/2022, 1:46 PM
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

Frank

04/11/2022, 5:06 AM
@Kujtim Hoxha yeah u can trigger a force deploy, that will clear the cache.
k

Kujtim Hoxha

04/11/2022, 9:19 AM
Ok awesome thanks 🙂