diff --git a/src/content/docs/en/reference/content-loader-reference.mdx b/src/content/docs/en/reference/content-loader-reference.mdx index 8d28dece41dba..f2435970a5601 100644 --- a/src/content/docs/en/reference/content-loader-reference.mdx +++ b/src/content/docs/en/reference/content-loader-reference.mdx @@ -34,7 +34,7 @@ For simple data fetching, you can also [define a loader as an async function](#d The `glob()` loader creates entries from directories of files from anywhere on the filesystem. The supported file types are Markdown, MDX, Markdoc, JSON, YAML, and TOML files. -This loader accepts an object with the following properties: `pattern`, `base` (optional), `generateId` (optional), and `retainBody` (optional). +This loader accepts an object with the following properties: `pattern`, `base` (optional), `generateId` (optional), `retainBody` (optional), and `deferRender` (optional). ```ts title="src/content.config.ts" import { defineCollection } from 'astro:content'; @@ -124,6 +124,34 @@ For Markdown files, the rendered body will still be available in the [`entry.ren For MDX collections, this will dramatically reduce the size of the collection, as there will no longer be any body retained in the store. +#### `deferRender` + +
+
+**Type:** `boolean`
+**Default:** `false`
+