but my worker is an API with hono and when deploying it it is exposed with a URL
but my worker is an API with hono and when deploying it it is exposed with a URL
wrangler.json doesn't have a Route/workers_dev, it won't have a URL, even if you are using Hono"18:50:33 [ERROR] Error: Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler. https://developers.cloudflare.com/workers/runtime-apis/handlers/\n at $store.off (chunks/Button_DdLih6DG.mjs:3475:7)\n at chunks/Button_DdLih6DG.mjs:3388:34\n at Object.get (chunks/Button_DdLih6DG.mjs:3370:11)\n at chunks/useAuth_DoHMfpz7.mjs:191:13"
cf-connecting-ip for duplicate-connection detection is getting into dangerous territory because of NAT and CGNAT, you might end up blocking 30 users because the CG-NAT'd IP is already connected from 1 user.
example.com but not for stuff.example.comstuff.example.com could have web analytics enabled with a click of a button
wrangler.jsonworkers_dev"18:50:33 [ERROR] Error: Disallowed operation called within global scope. Asynchronous I/O (ex: fetch() or connect()), setting a timeout, and generating random values are not allowed within global scope. To fix this error, perform this operation within a handler. https://developers.cloudflare.com/workers/runtime-apis/handlers/\n at $store.off (chunks/Button_DdLih6DG.mjs:3475:7)\n at chunks/Button_DdLih6DG.mjs:3388:34\n at Object.get (chunks/Button_DdLih6DG.mjs:3370:11)\n at chunks/useAuth_DoHMfpz7.mjs:191:13"cf-connecting-ipexample.comstuff.example.comstuff.example.com{
"source": {
"level": "error",
"message": "\u001b[2m2025-05-17T23:45:23.338Z\u001b[0m \u001b[31mERROR\u001b[0m \u001b[1m[Better Auth]:\u001b[0m Client Id and Client Secret is required for Google. Make sure to provide them in the options.",
"$cloudflare": {
"$metadata": {
"id": "01JVGA6NWAQ61VK3VN4Y5QBXQE",
"type": "cf-worker",
"error": "\u001b[2m2025-05-17T23:45:23.338Z\u001b[0m \u001b[31mERROR\u001b[0m \u001b[1m[Better Auth]:\u001b[0m Client Id and Client Secret is required for Google. Make sure to provide them in the options.",
"errorPattern": "\u001b[2m<UTC>\u001b[0m \u001b[31mERROR\u001b[0m \u001b[1m[Better Auth]:\u001b[0m Client Id and Client Secret is required for Google. Make sure to provide them in the options.",
"messagePattern": "\u001b[2m<UTC>\u001b[0m \u001b[31mERROR\u001b[0m \u001b[1m[Better Auth]:\u001b[0m Client Id and Client Secret is required for Google. Make sure to provide them in the options."
}
}
},
"dataset": "cloudflare-workers",
"timestamp": "2025-05-17T23:45:23.338Z",
"$workers": {
"truncated": false,
"event": {
"request": {
"url": "https://app.safecircle.tech/api/auth/sign-in/social",
"method": "POST",
"path": "/api/auth/sign-in/social"
}
},
"outcome": "ok",
"scriptName": "safecircle-waitlist",
"eventType": "fetch",
"executionModel": "stateless",
"scriptVersion": {
"id": "6caedba6-53c0-4eda-bff8-3e1d569e2f8f"
},
"requestId": "9416fcf7bf58cfc7"
},
"$metadata": {
"id": "01JVGA6NWAQ61VK3VN4Y5QBXQE",
"requestId": "9416fcf7bf58cfc7",
"trigger": "POST /api/auth/sign-in/social",
"service": "safecircle-waitlist",
"level": "error",
"error": "\u001b[2m2025-05-17T23:45:23.338Z\u001b[0m \u001b[31mERROR\u001b[0m \u001b[1m[Better Auth]:\u001b[0m Client Id and Client Secret is required for Google. Make sure to provide them in the options.",
"message": "\u001b[2m2025-05-17T23:45:23.338Z\u001b[0m \u001b[31mERROR\u001b[0m \u001b[1m[Better Auth]:\u001b[0m Client Id and Client Secret is required for Google. Make sure to provide them in the options.",
"account": "537639845b3a2365ae57881fbcbd6eee",
"type": "cf-worker",
"fingerprint": "e36b09522b8d83150f98181b2afd807d",
"origin": "fetch",
"messageTemplate": "\u001b[2m<UTC>\u001b[0m \u001b[31mERROR\u001b[0m \u001b[1m[Better Auth]:\u001b[0m Client Id and Client Secret is required for Google. Make sure to provide them in the options.",
"errorTemplate": "\u001b[2m<UTC>\u001b[0m \u001b[31mERROR\u001b[0m \u001b[1m[Better Auth]:\u001b[0m Client Id and Client Secret is required for Google. Make sure to provide them in the options."
},
"links": []
}