3 ms·
cool idea of a self-hostable alternative ot CF workers without much overhead, compiling it down to a binary makes local testing way easier.
by egorferber 4mo ago
cool idea of a self-hostable alternative ot CF workers without much overhead, compiling it down to a binary makes local testing way easier.
- le_chuck 4mo agoThx! I thought about adding a context to the fetch handler, could be handy for local testing. Likewise, local commands (e.g. dev or watch mode) are not yet there. Those would be next on the line if the CLI starts getting used by others than me.
- abecedarius 4mo agoI thought CF workers could be self-hosted? I haven't tried that system but saw Kenton Varda tweeting about running them locally for development.
- kentonv 4mo agoYes, the Cloudflare Workers Runtime is open source: https://github.com/cloudflare/workerd https://github.com/cloudflare/workerd You can definitely run workerd in production on your own machines and some people do. The biggest catch is that workerd's implementation of Durable Objects currently doesn't work across multiple machines, but I'm working on fixing that: https://github.com/cloudflare/workerd/pull/6780 https://github.com/cloudflare/workerd/pull/6780