Seeing an issue where prisma works in serverless n...
# orm-help
m
Seeing an issue where prisma works in serverless next.js API endpoints, but when we try to use it from
getServerSideProps
we get an error when
next build
is run with `target: serverless`:
Copy code
Error: ENOENT: no such file or directory, open '/home/runner/work/<my path>/.next/serverless/chunks/schema.prisma
Has anyone seen anything like this? It seems particularly tricky to debug given that it only happens when prisma client calls are added to
getServerSideProps
Found a similar issue here, but the
serverless-next.js
library doesn't appear to be the cause: https://github.com/serverless-nextjs/serverless-next.js/issues/1749