Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
ascorbic and delucis authored Dec 20, 2024
1 parent 0125802 commit 37c6962
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/afraid-sloths-shake.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'astro': patch
---

Improve warning logs for invalid content config
Improves warning logs for invalid content collection configuration
1 change: 1 addition & 0 deletions packages/astro/src/content/content-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export class ContentLayer {
return;
}

// It shows as loaded with no collections even if there's no config
if (contentConfig?.status !== 'loaded') {
logger.error('Content config not loaded, skipping sync');
return;
Expand Down

0 comments on commit 37c6962

Please sign in to comment.