
pg package, I get the errors:serverNodeBuiltinsPolyfill (https://remix.run/docs/en/1.19.3/file-conventions/remix-config#servernodebuiltinspolyfill), which got around those issues, but then I get:pg library on Workers requires node_compat which I don't think you can enable on Pageswrangler pages dev ./public --compatibility-flags=nodejs_compat nodejs_compat and node_compat are confusingly very different thingsnode_compat is a set of polyfills which is what pg wantsnodejs_compat are some node: modules made available at runtimepages dev supports --node-compat but pages deploy doesn'tservice core:user:worker: No such compatibility flag: node_compat12:46:06.565 Error: Failed to publish your Function. Got error: Uncaught TypeError: Cannot read properties of undefined (reading 'exports')
at functionsWorker-0.8391131841286965.js:21419:92service core:user:worker: Uncaught TypeError: Cannot read properties of undefined (reading 'exports')
at bh25zprwrab.js:21509:92 [ERROR] Could not resolve "dns"ng --force Recommended protections disabled.
node_modules/pg/lib/connection-parameters.js:3:18:
3 │ var dns = require('dns')
╵ ~~~~~
The package "dns" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "net"
node_modules/pg/lib/connection.js:3:18:
3 │ var net = require('net')
╵ ~~~~~
The package "net" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "net"
etc...serverNodeBuiltinsPolyfillReferenceError: process is not defined// node_modules/pg/lib/defaults.js
var require_defaults = __commonJS({
"node_modules/pg/lib/defaults.js"(exports6, module) {
"use strict";
module.exports = {
// database host. defaults to localhost
host: "localhost",
// database user's name
user: process.platform === "win32" ? process.env.USERNAME : process.env.USER,