For Workes & Pages, what is the name of the domain?
What is the error message?
./lib/mongodb.js ▲ Dynamic Code Evaluation (e. g. ‘eval’, ‘new Function’, ‘WebAssembly.compile’) not allowed in Edge Runtime ▲ Learn More: Dynamic code evaluation is not available in Middlewares or Edge API Routes | Next.js
What is the issue or error you’re encountering
I have a full stack next.js site on vercel. I have my backend and database configured in Next.js only. I was deploying to cloudflare pages and got error with mongoose.
This reply explains a bit about WASM on Workers:
Hi Samuel,
It looks like the response from support is a filtered version of what I told them.
We have many customers using WebAssembly successfully today.
Unfortunately, using Wasm today – whether in Workers, or in the browser – generally requires putting some effort into dependency management to get code size down to a reasonable level. Fundamentally, the problem is that Wasm modules end up like statically-linked binaries – they include not just your program itself, but also your programming…
system
Closed
August 4, 2024, 5:28pm
3
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.