Skip to content

Commit

Permalink
changes to changeset from review
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Aug 28, 2024
1 parent e605b98 commit bcee114
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .changeset/chilled-timers-shave.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit bcee114

Please sign in to comment.