Summary
Currently if you try and add a observability property to your previews object in your Wrangler config it will give you the following warning:
Missing property "compatibility_flags".
Missing property "jsx_factory".
Missing property "jsx_fragment".
Missing property "migrations".
Missing property "exports".
Missing property "triggers".
Missing property "rules".
Missing property "build".
Missing property "logfwdr".
Missing property "python_modules".
[...]
It seems one of the types or JSDoc types that the JSON schema is generated from is incorrect and is pulling in the type for the top-level config rather than just the observability types.
Reproduction
Paste this in as your wrangler.jsonc config and your editors LSP should warn you about previews.observability missing a large number of properties.
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "my-worker",
"main": "src/index.ts",
"compatibility_date": "2026-06-16",
"compatibility_flags": ["nodejs_compat"],
"observability": {
"enabled": true,
},
"previews": {
"observability": {
"enabled": true,
},
},
}
Summary
Currently if you try and add a
observabilityproperty to yourpreviewsobject in your Wrangler config it will give you the following warning:It seems one of the types or JSDoc types that the JSON schema is generated from is incorrect and is pulling in the type for the top-level config rather than just the observability types.
Reproduction
Paste this in as your
wrangler.jsoncconfig and your editors LSP should warn you aboutpreviews.observabilitymissing a large number of properties.{ "$schema": "node_modules/wrangler/config-schema.json", "name": "my-worker", "main": "src/index.ts", "compatibility_date": "2026-06-16", "compatibility_flags": ["nodejs_compat"], "observability": { "enabled": true, }, "previews": { "observability": { "enabled": true, }, }, }