diff --git a/packages/plugins/documentation/server/src/bootstrap.ts b/packages/plugins/documentation/server/src/bootstrap.ts index ea102c8883..aa5451261f 100755 --- a/packages/plugins/documentation/server/src/bootstrap.ts +++ b/packages/plugins/documentation/server/src/bootstrap.ts @@ -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(); + } }