mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-08-06 21:46:22 +08:00
docs: don’t build og images locally
This commit is contained in:
parent
b6e15a144d
commit
1203ed4296
@ -76,7 +76,7 @@ module.exports = function (api) {
|
||||
})
|
||||
|
||||
api.onCreateNode(options => {
|
||||
if (/* process.env.NODE_ENV === 'production' && */options.internal.typeName === 'DocPage') {
|
||||
if (process.env.NODE_ENV === 'production' && options.internal.typeName === 'DocPage') {
|
||||
createSpecificOpenGraphImage(options.title, options.content, `static/images${options.path}og-image.png`)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user