feat: scaffold Strapi 5 CMS with PostgreSQL and i18n config
Add Strapi 5 headless CMS application at apps/cms/ with: - PostgreSQL database configuration (afterlife database) - i18n plugin enabled with Spanish (default) and English locales - TypeScript configuration - Standard Strapi middleware stack - Environment variable template (.env.example) - Admin panel locale support for es/en Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
6
apps/cms/src/admin/app.ts
Normal file
6
apps/cms/src/admin/app.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export default {
|
||||
config: {
|
||||
locales: ["es", "en"],
|
||||
},
|
||||
bootstrap() {},
|
||||
};
|
||||
0
apps/cms/src/api/.gitkeep
Normal file
0
apps/cms/src/api/.gitkeep
Normal file
0
apps/cms/src/extensions/.gitkeep
Normal file
0
apps/cms/src/extensions/.gitkeep
Normal file
20
apps/cms/src/index.ts
Normal file
20
apps/cms/src/index.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
// import type { Core } from '@strapi/strapi';
|
||||
|
||||
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.
|
||||
*
|
||||
* This gives you an opportunity to set up your data model,
|
||||
* run jobs, or perform some special logic.
|
||||
*/
|
||||
bootstrap(/* { strapi }: { strapi: Core.Strapi } */) {},
|
||||
};
|
||||
Reference in New Issue
Block a user