darkpool
Explore posts from serversCDCloudflare Developers
•Created by darkpool on 4/3/2025 in #workers-help
Are event handlers necessary for RPC?
Are event handlers now necessary? I have workers I don't want to expose to fetch and only want to invoke via RPC.
Why cant I do something like:
without getting this error:
The uploaded script has no registered event handlers. Please visit the following
website for more information:
3 replies
BABetter Auth
•Created by darkpool on 3/8/2025 in #help
RR v7 framework mode subdomain getSession issue
I have 2 apps, a frontend and an API. API has auth instance and frontend has auth client. both different subdomains. I am unsure how to get getSession working in a loader function on my frontend since technically its a server side call...? useSession works but can't get getSession to work. It is working locally which is strange. Both apps deployed on cloudflare workers. Frontend app is using react router v7 framework mode and hono for SSR.
This is my loader
2 replies
CDCloudflare Developers
•Created by darkpool on 1/29/2025 in #workers-help
Is it possible to use spanner nodejs client library in workers?
Anyone know if it's possible to use the nodejs spanner client library in a cloudflare worker with node compatibility flags? I tried but failed so just wanted to check if it's a skill issue.
I get this error:
https://github.com/googleapis/nodejs-spanner
Edit: I've been manually refactoring the library but now running into this error:
"[unenv] child_process.exec is not implemented yet!"
it looks like wrangler 3.106.0 is using v2 of unenv which states child_process is compatibile but appears not
1 replies