TechParadox
CDCloudflare Developers
•Created by TechParadox on 8/17/2024 in #workers-help
Dynamic require of "cloudflare:workers" is not supported
I'm trying to create a cloudflare worker that is accessed via services by another worker. I followed the example here https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/
The worker fails to deploy with the error in the title. I aslo get this warning:
▲ [WARNING] The entrypoint src/gemini.ts has exports like an ES Module, but hasn't defined a default export like a module worker normally would. Building the worker using "service-worker" format...
Service Worker wrangler toml:
Service worker code (too long for discord)
https://pastebin.com/VraghKaZ7 replies
CDCloudflare Developers
•Created by TechParadox on 8/11/2024 in #general-help
Sending email via workers with mailjet API
The mailjet api provides curl command:
This is what I'm trying to do in my worker:
Am I doing something wrong? I get 400 error
5 replies
CDCloudflare Developers
•Created by TechParadox on 8/11/2024 in #general-help
Having trouble getting session cookie to store (lucia-auth, hono, cloudflare pages/worker)
My worker is hosted at api.domain.com and my frontend is using domain.com
When I post to api.domain.com/users from domain.com the response header shows the session cookie.
It then redirects to domain.com/email-verification, but the cookie is not stored in the browser.
What am I doing wrong? Any assistance is greatly appreciated.
Code (I removed some stuff to save space)
https://pastebin.com/70cy8PzV
4 replies