26 lines
742 B
TypeScript
26 lines
742 B
TypeScript
import type { Core } from '@strapi/strapi';
|
|||
|
|
|
||
|
|
import { runBootstrap } from './bootstrap';
|
||
|
|
|
||
|
|
export default {
|
||
|
|
/**
|
||
|
|
* An asynchronous register function that runs before
|
||
|
|
* your application is initialized.
|
||
|
|
*
|
||
|
|
* This gives you an opportunity to extend code.
|
||
|
|
*/
|
||
|
|
register(/* { strapi }: { strapi: Core.Strapi } */) {},
|
||
|
|
|
||
|
|
/**
|
||
|
|
* An asynchronous bootstrap function that runs before
|
||
|
|
* your application gets started.
|
||
|
|
*
|
||
|
|
* Reconciles the state the SHARP-ER site depends on: the `en` / `ar` locales
|
||
|
|
* and the Public role permissions. See `src/bootstrap/` - every step is
|
||
|
|
* idempotent, so this is safe on every boot.
|
||
|
|
*/
|
||
|
|
async bootstrap({ strapi }: { strapi: Core.Strapi }) {
|
||
|
|
await runBootstrap({ strapi });
|
||
|
|
},
|
||
|
|
};
|