Skip to content

Commit

Permalink
[Content Collections] Stray console.log snuck in! (#5668)
Browse files Browse the repository at this point in the history
* fix: stray console.log

* chore: changeset
  • Loading branch information
bholmesdev committed Dec 22, 2022
1 parent d5c0889 commit 9674cf5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/five-apes-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Remove stray `console.log` from content collections error message
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export default function toRemarkContentRelImageError({ contentDir }: { contentDi

const relImagePaths = new Set<string>();
visit(tree, 'image', function raiseError(node: Image) {
console.log(node.url);
if (isRelativePath(node.url)) {
relImagePaths.add(node.url);
}
Expand Down

0 comments on commit 9674cf5

Please sign in to comment.