deanmauro
deanmauro
CDCloudflare Developers
Created by Johannesw on 9/8/2024 in #workers-help
pg example not working
No description
5 replies
CDCloudflare Developers
Created by Johannesw on 9/8/2024 in #workers-help
pg example not working
I'm running into this same error. All is working fine locally but once deployed--this.stream.once is not a function. pg version 8.12.0 wrangler.json:
{
"compatibility_date": "2025-03-29",
"main": "./src/index.ts",
"keep_vars": true,
"upload_source_maps": true,
"compatibility_flags": [
"nodejs_compat",
"nodejs_als"
]
...
}
{
"compatibility_date": "2025-03-29",
"main": "./src/index.ts",
"keep_vars": true,
"upload_source_maps": true,
"compatibility_flags": [
"nodejs_compat",
"nodejs_als"
]
...
}
This started when I replaced node_compat with nodejs_compat. Has something changed since the patch in October that I have to update?
5 replies
CDCloudflare Developers
Created by deanmauro on 9/9/2024 in #workers-help
Cron trigger fails with no logs emitted
Never mind. I'm not sure what happened, but it's fixed now. I triggered a new deployment from wrangler and now logs are appearing. 🤷‍♂️
2 replies
CDCloudflare Developers
Created by abc222 on 6/6/2023 in #pages-help
How to use node_compat = true with cloudflare pages ?
12 replies
CDCloudflare Developers
Created by abc222 on 6/6/2023 in #pages-help
How to use node_compat = true with cloudflare pages ?
I had the same question. CF hasn't added postgres support in Pages yet unless we add the polyfills ourselves
12 replies
CDCloudflare Developers
Created by deanmauro on 6/1/2023 in #pages-help
Using connect() API in Pages
Do you have any guidance or docs on hand for adding polyfills in pages?
13 replies
CDCloudflare Developers
Created by deanmauro on 6/1/2023 in #pages-help
Using connect() API in Pages
Okay that's not necessarily so bad. I can either add polyfills for the pages functions or bind a worker.
13 replies
CDCloudflare Developers
Created by deanmauro on 6/1/2023 in #pages-help
Using connect() API in Pages
If I'm understanding correctly, that means pg isn't supported in Pages yet since the --node-compat flag isn't available? It will only work in a worker?
13 replies
CDCloudflare Developers
Created by deanmauro on 6/1/2023 in #pages-help
Using connect() API in Pages
Is node compatibility supported in Pages functions?
13 replies
CDCloudflare Developers
Created by deanmauro on 6/1/2023 in #pages-help
Using connect() API in Pages
It works locally with the deprecated --node-compat flag. I'm not having any luck setting the nodejs-compat compatibility-flag. It doesn't seem to have an effect.
13 replies
CDCloudflare Developers
Created by deanmauro on 6/1/2023 in #pages-help
Using connect() API in Pages
Yes, I'm using the latest v8.11.0
13 replies