it's not a server moderation issue
it's not a server moderation issue
switch and case for JS (and Router::new() for my Rust workers) but curious if anyone else has suggestions for keeping things tidyThe RPC receiver does not implement the method "sendTestEmail" error even though I have the 2 workers services running 


Failed to add watermark: ${response.status} ${response.statusText});watermarked-${Date.now()}.webp;${c.env.R2_PUBLIC_URL}/${key};setEnvironmentVariable and getEnvironmentVariable. The pages project calls getEnvironmentVariable, but when I track the time it takes to get a value (line before the RPC call and after (startMs, durationMs), it's more often 100-300ms than it is 0-30ms (it does hit it, but very rarely). Any reason why? I thought that service bindings would bind in the same isolate.return this.env[key], setEnvironmentVariable uses the Cloudflare API to set an environment variable on that worker.switchcaseRouter::new()The RPC receiver does not implement the method "sendTestEmail"Failed to add watermark: ${response.status} ${response.statusText}watermarked-${Date.now()}.webp${c.env.R2_PUBLIC_URL}/${key}setEnvironmentVariablesetEnvironmentVariablegetEnvironmentVariablegetEnvironmentVariablereturn this.env[key]/** Edge Config Worker */
export default class extends WorkerEntrypoint<EdgeConfigEnv> {
async setEnvironmentVariable(name: string, value: string): Promise<boolean> {
const res = await fetch(..., {}); // Simple POST call to `/workers/scripts/${scriptName}/secrets`
}
getEnvironmentVariable(name: string): string | null {
if (typeof this.env[name] === "string") {
return this.env[name];
}
return null;
}
}