Sakib
Explore posts from serversType 'Hono<App {...}>' does not satisfy the constraint 'Hono<any, any, any> Property '#private' in t
Hi, I'm trying to use hono RPC client on my frontend project. But the type not working properly. I'm using "hono": "^4.3.7", on server and client.
// On /web-api/src/routes/index.ts [Server]
// On /web-api/src/routes/users/index.ts [Server]
// On /web-api/tsconfig.json [Server]
// On /web-ui/tsconfig.json [Client]
3 replies
DTDrizzle Team
•Created by Sakib on 3/6/2024 in #help
TypeErr: BatchItem<sqlite>[] not assignable to readonly [BatchItem<sqlite>, ...BatchItem<sqlite>[]]
Hi, I'm trying to use drizzle/d1 (cloudflare worker) for batch. But I'm getting type error.
1 replies
CDCloudflare Developers
•Created by Sakib on 2/19/2024 in #workers-help
Hyperdrive not working on local environment
Hi, I'm getting an error from hyperdrive.
I'm not sure what does that mean? I added a WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_HYPERDRIVE variable on wrangler.toml file under [vars] but still not working
4 replies
DTDrizzle Team
•Created by Sakib on 12/30/2023 in #help
Typescript not showing where field in query. Query working but ts throwing error
Hi, I have a query like below
// relations.ts
I'm using drizzle-orm: ^0.29.1
4 replies
CDCloudflare Developers
•Created by Sakib on 10/11/2023 in #workers-help
If I called waitUntil(callback()) in a loop just say loop length is 100, so does that mean the...?
If I called waitUntil(callback()) in a loop just say loop length is 100, so does that mean the callback() function will run in a multiple thread or in a single thread? or waituntil will use a different instance for each time?
1 replies
DTDrizzle Team
•Created by Sakib on 9/20/2023 in #help
Which typescript type should I use for select?
Hi, this question might be confusing. Let me explain the problem, I'm building a common function for drizzle().select() somethine like
you can see I'm getting {[x:string]:never} when I pass {id:number;data:string} on select param.
5 replies
CDCloudflare Developers
•Created by Sakib on 8/26/2023 in #workers-help
How to use cloudflare saas custom hosts feature with worker?
Hi, I have a worker, which can show pages based on unique sub domain, like customer1.mydomain.com, customer2.mydomain.com etc. now my customer have their own domain which they can add from my site, which trigger the worker and the worker will add the custom hostname to my domain (saas) . customer will have to add a cname from their dns like cname => customerdomain.com => (customer1.mydomain.com), I want to do something like that, But I'm not sure I can do it with worker. Since I can't point worker (subdomain.worker.dev) address via cname on my domain (according to some article I read from cloudflare community post), that's mean I can't add a fallback domain on saas. to add a fallback domain I will need to use A/CNAME record, which not possible for workers, anyone can give me any suggestion? that would be great
3 replies
CDCloudflare Developers
•Created by Sakib on 8/23/2023 in #workers-help
Can't add custom domain on a worker. stuck at initializing for 6 hours, seems edge advanced cert stu
1 replies
CDCloudflare Developers
•Created by Sakib on 6/11/2023 in #pages-help
Trying to pass data from middleware context.data = {id:1} to a function, not working :(
Hi, I have a middleware inside functions/api/_middleware.ts now I'm trying to pass some data from that middleware to a function like I want to access that data on onRequest(data) like that. right now, it returning an empty object.
2 replies
CDCloudflare Developers
•Created by Sakib on 6/10/2023 in #pages-help
Middleware not working as excepted
2 replies
CDCloudflare Developers
•Created by Sakib on 6/5/2023 in #pages-help
Getting a warning message in the wrangler terminal "Your worker called response.clone() but didn..."
3 replies
CDCloudflare Developers
•Created by Sakib on 5/17/2023 in #workers-help
I'm getting CORS policy issue with the pages function.
2 replies
CDCloudflare Developers
•Created by Sakib on 5/7/2023 in #pages-help
wrangler pages dev --local . not loading the wrangler.toml file.
Hi, I'm trying to load wrangler.toml file in the pages functions, I'm running this cmd npx wrangler pages dev --local . but it saying in the terminal, No compatibility_date was specified. But I did add this in the wrangler.toml file.
/root
/root/functions/index.ts
/wrangler.toml
2 replies
CDCloudflare Developers
•Created by Sakib on 5/4/2023 in #workers-help
Horseman CMS not working
HI, I've setup 2 worker according to docs, But it's not working. plz check this https://github.com/AggressivelyMeows/Horseman/discussions/8
11 replies