opengb
opengb copied to clipboard
Stub or polyfill NodeJS dependencies for Prisma client
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