json config is now default, it doesn't need the flag anymore
json config is now default, it doesn't need the flag anymore
npx wrangler@dispatch-namespaces-dev dev --x-json-config correct?"vars" modify env but "dispatch_namespaces" doesn't?"dispatch_namespaces" doesn't work in local dev mode right now, because I tried deploying and env does have a DISPATCHER key in prod. Is that a bug? The output from wrangler dev implies that it is working:
Error: internal error; reference = v559jmcp0ee9g1mmqdamenrl ? *.acmepg.com (playground env) are sometimes handled by our sandbox Worker instead of our playground Worker, even though are fully isolated in separate wrangler environments with separate domains with their own dns config. acme-play-router for playground, acme-sbx-router for sandbox❌ Referer validation failed: ${refererHost} does not match ${baseDomain});Forbidden: Invalid referer, 403);
keep_bindings option in the types, but that doesn't seem to make a difference. You can use any Workers bindings with the dynamic dispatch Worker or any user Workers., but then how does it control which bindings it can bind to? If it doesn't then is it on the developers to ensure that the users are not able to edit the bindings as then they can get access to any resource on the main CF account"vars": {
"MY_VARIABLE": "production_value",
},
"dispatch_namespaces": [
{
"binding": "DISPATCHER",
"namespace": "<NAMESPACE_NAME>",
},
],Your worker has access to the following bindings:
- Vars:
- MY_VARIABLE: "production_value"
- Dispatch Namespaces:
- DISPATCHER: <NAMESPACE_NAME> [connected to remote resource]
⎔ Starting local server...
[wrangler:inf] Ready on http://localhost:8787import * as esbuild from "esbuild-wasm";
await esbuild.initialize({
worker: true,
wasmURL: "https://unpkg.com/esbuild-wasm/esbuild.wasm",
});
const result = await esbuild.transform(code, options);Error: internal error; reference = v559jmcp0ee9g1mmqdamenrl*.acmepg.comacme-play-routeracme-sbx-router- DNS config for each of our domains: The sandbox Worker correctly returns 403 when it sees playground domains (using Hono framework):❌ Referer validation failed: ${refererHost} does not match ${baseDomain}Forbidden: Invalid refererkeep_bindingsYou can use any Workers bindings with the dynamic dispatch Worker or any user Workers.