opengb icon indicating copy to clipboard operation
opengb copied to clipboard

Stub or polyfill NodeJS dependencies for Prisma client

Open NathanFlurry opened this issue 9 months ago • 1 comments

Motivation

We need to have NodeJS compat enabled for the given runtime at the moment, when OpenGB should be able to run in a vanilla ECMA Script context.

Implementation

Primsa client currently requires node:buffer and node:process. These probably are only referenced in unreachable code or need to be polyfilled (which is easy).

Note: Disabling nodejs compat might not work for hyperdrive https://developers.cloudflare.com/hyperdrive/get-started/#enable-nodejs-compatibility

NathanFlurry avatar May 15 '24 00:05 NathanFlurry