disable env check for now
This commit is contained in:
@@ -185,12 +185,12 @@ module.exports = function (api) {
|
|||||||
|
|
||||||
// Generate OpenGraph images for all pages
|
// Generate OpenGraph images for all pages
|
||||||
api.onCreateNode(options => {
|
api.onCreateNode(options => {
|
||||||
if (process.env.NODE_ENV !== 'production') {
|
// if (process.env.NODE_ENV !== 'production') {
|
||||||
return null
|
// return null
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (options?.internal?.typeName !== 'DocPage') {
|
if (options?.internal?.typeName !== 'DocPage') {
|
||||||
return null
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const imagePath = `static/images${options.path}`
|
const imagePath = `static/images${options.path}`
|
||||||
|
|||||||
Reference in New Issue
Block a user