Deploy Vike app with Prisma + Telefunc + PostgreSQL to Cloudflare Pages #11
Unanswered
jasonhilldm
asked this question in
Q&A
Replies: 2 comments 2 replies
-
This as well seems to be a vike-cloudflare question @magne4000. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm not really familiar with all |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a test project that pulls data from a PostgreSQL database using Telefunc and Prisma. I am using the Prisma PostgreSQL driver adapter (@prisma/adapter-pg). This all works fine when running locally, but when I deploy to Cloudflare Pages, I get the following error when trying to access the PostgreSQL database:
I should also mention that I had to use the following option in my wrangler.toml file:
compatibility_flags = [ "nodejs_compat_v2" ]
When I used just "nodejs_compat", the wrangler deployment failed with the following errors:
Beta Was this translation helpful? Give feedback.
All reactions