Barry
Barry
CDCloudflare Developers
Created by Barry on 8/1/2024 in #general-help
is it possible to use hyperdrive via cloudflare tunnel?
I'm using hyperdrive for a self-hosted postgresql server, this works well... but the service needs to be public to the internet. I've also got cloudflare tunnel running that currently just handles http traffic. But is it possible to get the TCP connection to the postgresql server go through the tunnel, and then expose it via hyperdrive?
4 replies
CDCloudflare Developers
Created by Barry on 10/2/2023 in #pages-help
postgres orm drizzle setup can not be bundled by rollup
I've used the cloudflare pages template for qwik ( https://developers.cloudflare.com/pages/framework-guides/deploy-a-qwik-site/ ). Then following the guide for integrating hyperdrive I added postgres.js and drizzle . When trying to run the build script I get the following error
[commonjs--resolver] Cannot bundle Node.js built-in "os" imported from "node_modules/.pnpm/[email protected]/node_modules/postgres/src/index.js". Consider disabling ssr.noExternal or remove the built-in dependency.
[commonjs--resolver] Cannot bundle Node.js built-in "os" imported from "node_modules/.pnpm/[email protected]/node_modules/postgres/src/index.js". Consider disabling ssr.noExternal or remove the built-in dependency.
This library is recommended by the cloudflare docs ( https://developers.cloudflare.com/hyperdrive/learning/connect-to-postgres/ ) so I'm confused why it is giving errors. Anyone know how to fix this?
19 replies