olafg
olafg
Explore posts from servers
CDCloudflare Developers
Created by Sinergix on 4/24/2025 in #workers-help
Best-practices and errors for CFworkers+Hono API in monorepo
when you import variables like this they are available globally and not just in a request context
3 replies
CDCloudflare Developers
Created by Sinergix on 4/24/2025 in #workers-help
Best-practices and errors for CFworkers+Hono API in monorepo
Environment variables you can define in wrangler or in the UI, keep in mind that you should use secrets for keys etc. You should be able to access them using the import {env} from "cloudflare:workers"
3 replies
CDCloudflare Developers
Created by thenasim on 4/21/2025 in #workers-help
Having Trouble Getting D1 to Work in Local Development with Drizzle ORM?
Afaik Drizzle doesn't support loading the local sqlite db that is created by Wrangler. I had to implement something similar to what is discussed here: https://github.com/drizzle-team/drizzle-orm/discussions/1545
6 replies
CDCloudflare Developers
Created by dev.itsarun on 4/16/2025 in #workers-help
Api to Add or Update D1 Bindings in Workers ?
Bindings between workers are controlled by wrangler config or in some cases the dashboard
4 replies
CDCloudflare Developers
Created by Mark Aron on 4/12/2025 in #workers-help
Uncaught Error: No such module "node:process"
Hi, I think you need to add nodejs_compat under compatability flags as well
3 replies
CDCloudflare Developers
Created by Mark Aron on 4/11/2025 in #workers-help
Remix deployment with cloudflare vite plugin - only static client-side assets are supported?
It should work, at least it does with RR v7
4 replies
CDCloudflare Developers
Created by dtnc on 4/12/2025 in #workers-help
how to view console.log when running via `wrangler dev --remote`
Console logs should appear, but if you added it in your code without rebuilding the path in wrangler config the code hasn't been updated
3 replies
CDCloudflare Developers
Created by DiamondDragon on 4/10/2025 in #workers-help
How to source process.env in monorepo in a worker?
I am not sure you can... I am adding .dev.vars at the same level as each wrangler config
4 replies
CDCloudflare Developers
Created by spider on 3/14/2025 in #workers-for-platforms
Local development · Cloudflare for Platf...
JSONC is in the docs, why would it not work? I am trying to move from toml mess to jsonc but facing some issues
7 replies
CDCloudflare Developers
Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
Hm, interesting, did you also use internal repo packages in Turborepo? If possible, can you share your wrangler setup / turbo.json /package.json
27 replies
CDCloudflare Developers
Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
@outsideurimagination Did you figure this out?
27 replies
CDCloudflare Developers
Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
Hey. Both the root package.json and the remix package.sjon has pnpm defined under packageManager
27 replies
CDCloudflare Developers
Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
Scripts in package.json
27 replies
CDCloudflare Developers
Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
"scripts": {
"dev": "remix vite:dev",
"build": "remix vite:build",
"start": "wrangler pages dev ./build/client",
"cf-typegen": "wrangler types",
"preview": "remix vite:build && wrangler pages dev"
},
"scripts": {
"dev": "remix vite:dev",
"build": "remix vite:build",
"start": "wrangler pages dev ./build/client",
"cf-typegen": "wrangler types",
"preview": "remix vite:build && wrangler pages dev"
},
27 replies
CDCloudflare Developers
Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
yes, locally it works
27 replies