abc222
abc222
Explore posts from servers
CDCloudflare Developers
Created by $0 on 7/28/2024 in #pages-help
the script will never generate a response.
Hello, I have a question about what you said here Do you mean that you had to call new PrismaClient({ adapter }) for each request ? Is it possible to keep a Prisma client between requests or not ?
13 replies
CDCloudflare Developers
Created by abc222 on 6/6/2023 in #pages-help
How to use node_compat = true with cloudflare pages ?
Yes, I made a suggestion, but since my projects deploys with GitHub, it would also be great to have it working with cloudflare's web UI
12 replies
CDCloudflare Developers
Created by abc222 on 6/6/2023 in #pages-help
How to use node_compat = true with cloudflare pages ?
So I should open an issue on workers-sdk ? I can try but if it's an older flag, maybe they are looking to deprecate it somehow I'll also contact the SQL driver's module to check with him if it would be easy to reach a higher level of compatibility
12 replies
CDCloudflare Developers
Created by abc222 on 6/6/2023 in #pages-help
How to use node_compat = true with cloudflare pages ?
https://github.com/porsager/postgres/pull/599 He commited something that is supported by Cloudflare Workers (with node_compat = true), but if it's only supported with a legacy flag that isn't working with nodejs_compat (the new flag), is it a real support ? And do you think that it would be possible for him to have something working with nodejs_compat instead of node_compat = true ?
12 replies
CDCloudflare Developers
Created by abc222 on 6/6/2023 in #pages-help
How to use node_compat = true with cloudflare pages ?
Yes, building my own "_worker.js" would be pretty hard since I use a front-end framework (SvelteKit) however, the module I use for postgres needs those node.js modules : https://github.com/porsager/postgres/tree/cloudflare Is that something that they should fix on their own side ?
12 replies