docs: don’t build og images locally
This commit is contained in:
@@ -76,7 +76,7 @@ module.exports = function (api) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
api.onCreateNode(options => {
|
api.onCreateNode(options => {
|
||||||
if (/* process.env.NODE_ENV === 'production' && */options.internal.typeName === 'DocPage') {
|
if (process.env.NODE_ENV === 'production' && options.internal.typeName === 'DocPage') {
|
||||||
createSpecificOpenGraphImage(options.title, options.content, `static/images${options.path}og-image.png`)
|
createSpecificOpenGraphImage(options.title, options.content, `static/images${options.path}og-image.png`)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user