Error when trying to host 3.0 Demo on Cloudflare Pages (Edge Runtime) #6110
Replies: 8 comments 13 replies
-
Correct, we're not there just yet. But - this is super interesting. What are the steps that you're following to deploy to Cloudflare Pages? I will convert this to a discussion on the main Payload repo so we can track conversation accordingly. |
Beta Was this translation helpful? Give feedback.
-
@todor0v — what database adapter were you using? No errors from the DB adapter? |
Beta Was this translation helpful? Give feedback.
-
One more thought here for anyone who is interested in testing further on this. If you add a |
Beta Was this translation helpful? Give feedback.
-
Related: brianc/node-postgres#3206 |
Beta Was this translation helpful? Give feedback.
-
@jmikrut, is there a loose timeline for official serverless Cloudflare support? |
Beta Was this translation helpful? Give feedback.
-
It seems all nextjs + postgres projects hit this edge wall now. |
Beta Was this translation helpful? Give feedback.
-
I think this is surely one of the more interesting approaches, I only came around payload today and I was instantly thinking of hosting it in cloudflare, would love more out of the box support though! |
Beta Was this translation helpful? Give feedback.
-
Sure thing, looks like a must-have for now. |
Beta Was this translation helpful? Give feedback.
-
Upon trying to host the 3.0 Demo on Cloudflare Pages I get this error:
If I add the
nodejs_compat
flag to CF compatibility flags andexport const runtime = 'edge'
to the appropriate Payloadpage.ts
androute.ts
files (even though I know I shouldn't), I getModule not found: Can't resolve 'path' (fs and stream)
all connected tonode_modules/atomically
andnode_modules/busboy
.In the demo video @jmikrut mentioned that we are close to Edge Runtime support. I assume I have those errors because we are not there yet.
Beta Was this translation helpful? Give feedback.
All reactions