Does Cloudflare have a proxy product? I read there was something called Oxy…
Does Cloudflare have a proxy product? I read there was something called Oxy…
Unless otherwise expressly permitted in writing by Cloudflare, you will not and you have no right to:
...
(j) use the Services to provide a virtual private network or other similar proxy services.

*.domain.com/* (to match wildcard subdomains)https://otherdomain.com/api/etc?redirect_uri=https://example.domain.com.https://*. domain.com/* is matching against URLs like https://otherdomain.com?redirect_uri=https://domain.com Failed: error occurred while installing tools or dependencies error with Workers Bulds :/ any ideas?
packageManager which is annoying. PNPM_VERSION env var also isn't documented https://developers.cloudflare.com/workers/ci-cd/builds/build-image/


cloudflare:sockets to talk to DBs today, like postgresprepare: false these days - hyperdrive is well optimised for prepared statements, but yes exactly. Drizzle + postgres + hyperdrive on Workers is awesome.prepare: false in my stuff and haven't seen any issues yet.prepare: true or omit it because it defaults to true.postgres library paired with Hyperdrive, and then you can use your ORM library of choice like drizzle or prismspostgres @neondatabase/serverless and just use postgres if you can - it doesn't provide much benefits nowadays.useDB function that you pass in your env, and it returns a DB client, and then you can also re-use them across different endpoints, etc. if you're running hono or some other router where your logic is split into multiple files❯ npm run deploy
> seanbehan@0.1.0 deploy
> npm run pages:build && wrangler pages deploy
> seanbehan@0.1.0 pages:build
> npx @cloudflare/next-on-pages
(node:1071777) ExperimentalWarning: CommonJS module /nix/store/nsc1zfr2q3z2dp0c3vlip7lhkjckafk8-nodejs-23.2.0/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /nix/store/nsc1zfr2q3z2dp0c3vlip7lhkjckafk8-nodejs-23.2.0/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
⚡️ @cloudflare/next-on-pages CLI v.1.13.7
⚡️ Detected Package Manager: npm (10.9.0)
⚡️ Preparing project...
⚡️ Project is ready
⚡️ Building project...
▲ (node:1071835) ExperimentalWarning: CommonJS module /nix/store/nsc1zfr2q3z2dp0c3vlip7lhkjckafk8-nodejs-23.2.0/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /nix/store/nsc1zfr2q3z2dp0c3vlip7lhkjckafk8-nodejs-23.2.0/lib/node_modules/npm/node_modules/supports-color/index.js using require().
▲ Support for loading ES Module in require() is an experimental feature and might change at any time
▲ (Use `node --trace-warnings ...` to show where the warning was created)
▲ Vercel CLI 39.2.2
▲ Installing dependencies...
▲ (node:1071871) ExperimentalWarning: CommonJS module /nix/store/nsc1zfr2q3z2dp0c3vlip7lhkjckafk8-nodejs-23.2.0/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /nix/store/nsc1zfr2q3z2dp0c3vlip7lhkjckafk8-nodejs-23.2.0/lib/node_modules/npm/node_modules/supports-color/index.js using require().
▲ Support for loading ES Module in require() is an experimental feature and might change at any time
▲ (Use `node --trace-warnings ...` to show where the warning was created)
▲ up to date in 2s
▲ 160 packages are looking for funding
▲ run `npm fund` for details
▲ Detected Next.js version: 15.1.0
▲ Running "npm run build"
▲ > seanbehan@0.1.0 build
▲ > next build
▲ ▲ Next.js 15.1.0
▲
▲ Creating an optimized production build ...
▲ Failed to compile.
▲ ./src/app/page.tsx + 1 modules
▲ Unexpected end of JSON input
▲
▲ > Build failed because of webpack errors
▲ Error: Command "npm run build" exited with 1
⚡️ The Vercel build (`npx vercel build`) command failed. For more details see the Vercel logs above.
⚡️ If you need help solving the issue, refer to the Vercel or Next.js documentation or their repositories.*.domain.com/*https://otherdomain.com/api/etc?redirect_uri=https://example.domain.comhttps://*. domain.com/*https://otherdomain.com?redirect_uri=https://domain.comFailed: error occurred while installing tools or dependenciespackageManagerPNPM_VERSIONcloudflare:socketspostgrespostgrespostgrespostgresprepare: falseprepare: falseprepare: truetrue@neondatabase/serverlessuseDBenvhonoexport const getDbString = (env: Env) => {
// Check for override first
if (env.OVERRIDE_CONNECTION_STRING) {
return env.OVERRIDE_CONNECTION_STRING;
}
if (env.HYPERDRIVE?.connectionString) {
return env.HYPERDRIVE.connectionString;
}
return env.SUPABASE_DATABASE_URL;
};import postgres from "postgres";
// ...
const postgresInstance = postgres(url, {
max: 10,
idle_timeout: 20,
prepare: false,
onclose: (connId) => {
numConnections--;
if (debug) {
console.log(
"Postgres connection closed, connId:",
connId,
"numConnections:",
numConnections,
// stack,
);
}
},
});
return drizzle(postgresInstance, { schema });