diff --git a/.changeset/chilled-timers-shave.md b/.changeset/chilled-timers-shave.md index a3f9f248a772..1866eab85bfb 100644 --- a/.changeset/chilled-timers-shave.md +++ b/.changeset/chilled-timers-shave.md @@ -8,28 +8,19 @@ Passes `AstroConfig` instead of `AstroSettings` object to content layer loaders. This will not affect you unless you have created a loader that uses the `settings` object. If you have, you will need to update your loader to use the `config` object instead. -```js -// Before +```diff export default function myLoader() { return { name: 'my-loader' - async load({ settings }) { - const base = settings.config.base; +- async load({ settings }) { +- const base = settings.config.base; ++ async load({ config }) { ++ const base = config.base; // ... } } } -// After -export default function myLoader() { - return { - name: 'my-loader' - async load({ config }) { - const base = config.base; - // ... - } - } -} ``` Other properties of the settings object are private internals, and should not be accessed directly. If you think you need access to other properties, please open an issue to discuss your use case.