Using Mongoose with Cloudflare Pages and Nuxt

Is it possible to find a solution for using Mongoose within Cloudflare Pages or a technical explanation of why it cannot be used?

We talk about a Nuxt zero-configuration integration, no Workers, but Pages, implemented as explained inthis official guide by Cloudflare.

After failed tests and googling, it seams that it’s impossible to use Mongoose within Cloudflare Pages, despite the use of the nodejs_compat compatibility flag.

I’ve created a test repo to reproduce the issue, with the implementation process.

Anyone has a working repo or example?

Thank you

I have the same problem, I was following the documents on nuxt deploy, what ever how many time I confirm. After add nuxthub or something involved with cloudlfare absolutely even though how deploy or run build always get error about the snappy inside mongoDB.

I am already google find solution for 16 hours still no any document can help, maybe I will decide switch to another deploy, cloudflare very good. But this … take me too much time.