Skip to content

Commit 6cd21e1

Browse files
committed
Do not attempt to fix cover images by default
1 parent 5025afd commit 6cd21e1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

index.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class NetlifyPaths {
2121
static defaultOptions() {
2222
return {
2323
contentTypes: [],
24-
coverField: 'cover_image',
24+
coverField: undefined,
2525
mimeType: 'text/markdown',
2626
}
2727
}
@@ -54,10 +54,11 @@ class NetlifyPaths {
5454
typeName: typeName,
5555
route: route,
5656
})
57-
58-
ContentType.on('add', node => {
59-
node[coverField] = this.fixPath(node[coverField])
60-
})
57+
if (coverField !== undefined) {
58+
ContentType.on('add', node => {
59+
node[coverField] = this.fixPath(node[coverField])
60+
})
61+
}
6162
}
6263
}
6364
}

0 commit comments

Comments
 (0)