diff --git a/.changeset/unlucky-teachers-call.md b/.changeset/unlucky-teachers-call.md new file mode 100644 index 000000000000..b469a580dfc8 --- /dev/null +++ b/.changeset/unlucky-teachers-call.md @@ -0,0 +1,5 @@ +--- +"wrangler": patch +--- + +Relax type on observability.enabled to remove linting error for nested configurations diff --git a/packages/wrangler/src/config/environment.ts b/packages/wrangler/src/config/environment.ts index a3ac9f58db11..c70cefe3e6f6 100644 --- a/packages/wrangler/src/config/environment.ts +++ b/packages/wrangler/src/config/environment.ts @@ -953,11 +953,11 @@ export type Assets = { export interface Observability { /** If observability is enabled for this Worker */ - enabled: boolean; + enabled?: boolean; /** The sampling rate */ head_sampling_rate?: number; logs?: { - enabled: boolean; + enabled?: boolean; /** The sampling rate */ head_sampling_rate?: number; /** Set to false to disable invocation logs */