mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
disable env check for now
This commit is contained in:
parent
c7501f6eb7
commit
471f2176e8
@ -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}`
|
||||
|
Loading…
Reference in New Issue
Block a user