vas
CDCloudflare Developers
•Created by Muhymin on 9/30/2023 in #workers-help
Randomly worker requests are being canceled
Hi, Does changing a worker's Usage model in cloudflare worker dashboard incur downtime or is it only applied to new instances of that worker?
18 replies
CDCloudflare Developers
•Created by vas on 4/13/2023 in #miniflare
🔌 Multiple Workers · Miniflare
Thanks, that has fixed the timeout issue, still get a fetch error. I will work on it, thanks again.
9 replies
CDCloudflare Developers
•Created by vas on 4/13/2023 in #miniflare
🔌 Multiple Workers · Miniflare
yes, I have some tests using worker functions.
9 replies
CDCloudflare Developers
•Created by vas on 4/13/2023 in #miniflare
🔌 Multiple Workers · Miniflare
This is my jest config, I am using miniflare test environment
export default {
preset: 'ts-jest/presets/default-esm',
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: './tsconfig.json',
useESM: true
}
]
},
testEnvironment: 'miniflare',
testEnvironmentOptions: {
scriptPath: 'dist/index.mjs',
modules: true
},
testTimeout: 10000
}
9 replies
CDCloudflare Developers
•Created by vas on 4/13/2023 in #miniflare
🔌 Multiple Workers · Miniflare
9 replies
CDCloudflare Developers
•Created by vas on 4/13/2023 in #miniflare
🔌 Multiple Workers · Miniflare
Hi, I don't use
clearImmediate
in my worker. This is my worker code
import { Env } from './types/environment'
export default {
async fetch(request: Request, env: Env): Promise<Response> {
const nextHeader = request.headers.has(env.NEXT_HEADER)
console.log(green router is ${JSON.stringify(env)}
)
if (env.LIVE_ROUTER === 'blue') {
return nextHeader
? await env.GREEN_ROUTER.fetch(request)
: await env.BLUE_ROUTER.fetch(request)
} else {
return nextHeader
? await env.BLUE_ROUTER.fetch(request)
: await env.GREEN_ROUTER.fetch(request)
}
}
}
9 replies
CDCloudflare Developers
•Created by vas on 2/14/2023 in #workers-help
worker mTLS
so even if i use the same certificate, I will have to create a mtls_certificate binding in each worker?
2 replies