Skip to content

Conversation

@TMSchipper
Copy link
Contributor

This feature will resolve:
#194
#142

You can test this by adding this to your config:

export default () => ({
    'seo': {
        enabled: true,
    },
    'publisher': {
        enabled: true,
        config: {
            contentTypes: ['api::article.article'],
            hooks: {
                beforePublish: async ({ strapi, uid, entity }) => {
                    return false;
                },
                afterPublish: async ({ strapi, uid, entity }) => {
                    // Post-publish side effects
                },
                beforeUnpublish: async ({ strapi, uid, entity }) => {
                    // Return false to prevent unpublish
                    return false;
                },
                afterUnpublish: async ({ strapi, uid, entity }) => {
                    // Post-unpublish side effects
                },
            },
        }
    },
});

Copy link
Member

@boazpoolman boazpoolman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@TMSchipper TMSchipper merged commit d909bb2 into master Aug 21, 2025
@TMSchipper TMSchipper deleted the feature/194-setup-publishing-once-with-redundant-services branch August 21, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants