fix: Documentation plugin makes git changes in production (#21950)

This commit is contained in:
Den 2024-12-04 11:39:03 +03:00 committed by GitHub
parent 2dcec09530
commit 00509c6848
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,6 +45,7 @@ export async function bootstrap({ strapi }: { strapi: Core.Strapi }) {
if (!config) {
pluginStore.set({ key: 'config', value: { restrictedAccess: false } });
}
if (process.env.NODE_ENV !== 'production') {
await getService('documentation').generateFullDoc();
}
}