setup #64
JakeHolcroft
started this conversation in
General
setup
#64
Replies: 1 comment 2 replies
-
|
The only required part is the enabled section. You might need to try a clean rebuild for it to show. Instructions on how to do so are in the note at the end of the usage instructions |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Once i install the plugin,
add this to my plugins.js:
module.exports = ({ env }) => ({
// ..
'publisher': {
enabled: true,
config: {
hooks: {
beforePublish: async ({ strapi, uid, entity }) => {
console.log('beforePublish');
},
afterPublish: async ({ strapi, uid, entity }) => {
console.log('afterPublish');
},
beforeUnpublish: async ({ strapi, uid, entity }) => {
console.log('beforeUnpublish');
},
afterUnpublish: async ({ strapi, uid, entity }) => {
console.log('afterUnpublish');
},
},
},
},
// ..
});
should the scheduler be enabled?
thanks
Beta Was this translation helpful? Give feedback.
All reactions