diff --git a/.changeset/few-mayflies-invent.md b/.changeset/few-mayflies-invent.md new file mode 100644 index 000000000..4df57c2dc --- /dev/null +++ b/.changeset/few-mayflies-invent.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Allow user config to set `markdown.drafts` option diff --git a/packages/astro/src/core/config.ts b/packages/astro/src/core/config.ts index b0678de04..094680721 100644 --- a/packages/astro/src/core/config.ts +++ b/packages/astro/src/core/config.ts @@ -363,7 +363,7 @@ function resolveFlags(flags: Partial): CLIFlags { config: typeof flags.config === 'string' ? flags.config : undefined, host: typeof flags.host === 'string' || typeof flags.host === 'boolean' ? flags.host : undefined, - drafts: typeof flags.drafts === 'boolean' ? flags.drafts : false, + drafts: typeof flags.drafts === 'boolean' ? flags.drafts : undefined, }; }