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>
14 lines
397 B
TypeScript
14 lines
397 B
TypeScript
export default ({ env }) => ({
|
|
connection: {
|
|
client: "postgres",
|
|
connection: {
|
|
host: env("DATABASE_HOST", "127.0.0.1"),
|
|
port: env.int("DATABASE_PORT", 5432),
|
|
database: env("DATABASE_NAME", "afterlife"),
|
|
user: env("DATABASE_USERNAME", "afterlife"),
|
|
password: env("DATABASE_PASSWORD", "afterlife"),
|
|
ssl: env.bool("DATABASE_SSL", false),
|
|
},
|
|
},
|
|
});
|