mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
generate og images only for production
This commit is contained in:
parent
307aaa1988
commit
e130a77288
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user