Rastislav₡ore
CDCloudflare Developers
•Created by Rastislav₡ore on 9/16/2024 in #pages-help
Compatibility flags for PosgreSQL
I am trying to build and deploy SvelteKit page with enabled flags:
nodejs_compat
or nodejs_compat_v2
https://developers.cloudflare.com/workers/configuration/compatibility-dates/#compatibility-flags
I am using Drizzle connector, but seems I run always into node compatibility issues, which are present on native postgres.js
also.
Connectors are present in Hyperdrive: https://developers.cloudflare.com/hyperdrive/configuration/connect-to-postgres/#supported-drivers
Source code: https://github.com/bchainhub/dapp-sveltekit-boilerplate/tree/update/contrib-13
My questions:
Q1: Do I need to upgrade to paid plan for Node.js features support? (I am aware of Hyperdrive included in Paid plan)
Q2: What should I change to make Node.js API working on my Pages deployment?
Some of errors I am getting while deployment:
- page: core-dapp.pages.dev
- deployment: 580ce1e
I checked the examples here also: https://developers.cloudflare.com/hyperdrive/examples/27 replies