disable env check for now

This commit is contained in:
Hans Pagel 2021-02-03 15:10:36 +01:00
parent c7501f6eb7
commit 471f2176e8

View File

@ -185,12 +185,12 @@ 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 null
// }
if (options?.internal?.typeName !== 'DocPage') {
return null
return
}
const imagePath = `static/images${options.path}`