Add support for Drafts (in-progress content) using this five line config. This includes draft content during --serve or --watch but not with a regular build!

export default function ($config) { $config.addPreprocessor("drafts", "", (data) => { if (data.draft && process.env.ELEVENTYRUNMODE === "build") { return false; // skipped in prod, visible in --serve } }); }