mirror of
https://github.com/strapi/strapi.git
synced 2025-10-14 09:34:32 +00:00
fix: Documentation plugin makes git changes in production (#21950)
This commit is contained in:
parent
2dcec09530
commit
00509c6848
@ -45,6 +45,7 @@ export async function bootstrap({ strapi }: { strapi: Core.Strapi }) {
|
||||
if (!config) {
|
||||
pluginStore.set({ key: 'config', value: { restrictedAccess: false } });
|
||||
}
|
||||
|
||||
await getService('documentation').generateFullDoc();
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
await getService('documentation').generateFullDoc();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user