generate og images only for production

This commit is contained in:
Hans Pagel 2021-02-03 16:38:23 +01:00
parent 307aaa1988
commit e130a77288

View File

@ -185,9 +185,9 @@ module.exports = function (api) {
// Generate OpenGraph images for all pages
api.onCreateNode(options => {
// if (process.env.NODE_ENV !== 'production') {
// return null
// }
if (process.env.NODE_ENV !== 'production') {
return
}
if (options.internal.typeName !== 'DocPage') {
return