Skip to content

Error: Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge Runtime  #1672

@LilaRest

Description

@LilaRest

Description and expected behavior
Hey there! I'm currently implement ZenStack in a NextJS project hosted on Cloudflare Pages (edge-runtime) so my entire application is set with:

export const runtime = "edge";

Development server works well, but as soon as I attempt a build, I obtain the error shown on the below screenshot. I tried to precisely follow the instructions from that documentation page, but the error persists.

Does anyone has an idea of what might be happening here?

Screenshots
CleanShot 2024-08-30 at 19 25 35@2x

Environment (please complete the following information):

  • ZenStack version: 2.4.1
  • Prisma version: 5.19.0
  • Database type: Postgresql (Neon)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions