rivet-gg / opengb

Open Game Backend: Open-source modular backend for all games and tools. Works with Godot, Unity, Unreal Engine, and HTML5.
https://opengb.dev
Apache License 2.0
82 stars 6 forks source link

Stub or polyfill NodeJS dependencies for Prisma client #268

Open NathanFlurry opened 2 months ago

NathanFlurry commented 2 months ago

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

linear[bot] commented 2 months ago

OGBE-96 Stub or polyfill NodeJS dependencies for Prisma client