janat08
Explore posts from serversCDCloudflare Developers
•Created by janat08 on 4/9/2024 in #workers-help
/__scheduled won’t connect
I can't figure out how to run a cron job on wrangler. I have scheduled default export, and wrangler running with --test-scheduled. It will not connect to localhost:8787/__scheduled. Copilot proposes that I run it in ts-node, but Im using to fetch access tokens from paypal and store it in kv.
11 replies
CDCloudflare Developers
•Created by janat08 on 12/10/2023 in #workers-help
Full featured template worker
Is there a full featured template with CD, cypress, commit hooks, and wtv else. I use hono, and I'm mishandling how to bundle a fronted js/css stuff into one script tag.
1 replies
DTDrizzle Team
•Created by janat08 on 9/22/2023 in #help
Execute is not exist on a type LibSQLDatabase
const url = env.TURSO_DB_URL
if (url === undefined) {
throw new Error('TURSO_DB_URL is not defined');
}
const authToken = env.TURSO_DB_AUTH_TOKEN
if (authToken === undefined) {
throw new Error('TURSO_DB_AUTH_TOKEN is not defined');
}
const ab = await drizzle(createClient({ url, authToken }))
c.set('db', ab.execute())
the type is LibSQLDatabase<Record<string,never>>
11 replies
DTDrizzle Team
•Created by janat08 on 9/17/2023 in #help
turso geospatial and fuzzy search using extensions
There's an option to create a database with some of the extensions enabled that are kinda barebones. I don't know how to use those to begin with much less through the ORM. https://github.com/nalgeon/sqlean/blob/main/docs/fuzzy.md
4 replies