generate og images only for production
This commit is contained in:
@@ -185,9 +185,9 @@ 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
|
||||||
// }
|
}
|
||||||
|
|
||||||
if (options.internal.typeName !== 'DocPage') {
|
if (options.internal.typeName !== 'DocPage') {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user