DJtheRedstoner
DJtheRedstoner
CDCloudflare Developers
Created by DJtheRedstoner on 8/9/2023 in #workers-help
How do you deploy your workers to dev and prod?
At work we are currently deploying our first worker (filter for a GitHub -> discord webhook), and we're trying to figure out the best way to deploy it. The wrangler GitHub action seems like the obvious choice and will work for our environment (no development deployment, since that doesn't make much sense for an internal webhook filter), but left us with a few questions. What are some different ways to deploy to development and production (specifically automated methods)? I know workers support multiple "environments" but do some people use a separate account id for development?
4 replies
CDCloudflare Developers
Created by DJtheRedstoner on 5/16/2023 in #workers-help
Typings for new connect method
Is there any typings for the new TCP connect method yet? I'm using @cloudflare/workers-types@next and I can't seem to find any typings for it. Adding the following to types.d.ts works:
declare module "cloudflare:sockets" {
export function connect(address: SocketAddress | string, options?: SocketOptions): Socket
}
declare module "cloudflare:sockets" {
export function connect(address: SocketAddress | string, options?: SocketOptions): Socket
}
3 replies