[Content Collections] Stray console.log snuck in! (#5668)

* fix: stray console.log

* chore: changeset
This commit is contained in:
Ben Holmes 2022-12-22 17:17:53 -05:00 committed by GitHub
parent d5c088911d
commit 9674cf56c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Remove stray `console.log` from content collections error message

View file

@ -15,7 +15,6 @@ export default function toRemarkContentRelImageError({ contentDir }: { contentDi
const relImagePaths = new Set<string>(); const relImagePaths = new Set<string>();
visit(tree, 'image', function raiseError(node: Image) { visit(tree, 'image', function raiseError(node: Image) {
console.log(node.url);
if (isRelativePath(node.url)) { if (isRelativePath(node.url)) {
relImagePaths.add(node.url); relImagePaths.add(node.url);
} }