strapi-plugin-publisher
Version:
A plugin for Strapi Headless CMS that provides the ability to schedule publishing for any content type.
25 lines (23 loc) • 428 B
JavaScript
import pluginConfigSchema from './schema';
export default {
default: () => ({
enabled: true,
actions: {
syncFrequency: '*/1 * * * *',
},
hooks: {
beforePublish: () => {},
afterPublish: () => {},
beforeUnpublish: () => {},
afterUnpublish: () => {},
},
components: {
dateTimePicker: {
step: 5,
},
},
}),
validator: async (config) => {
await pluginConfigSchema.validate(config);
},
};