From 3c12d51d4ef4ef6e838ac835a67245da07f5f293 Mon Sep 17 00:00:00 2001 From: Radoslav Zeman <19418224+radoslavzeman@users.noreply.github.com> Date: Mon, 25 Mar 2024 13:49:43 +0100 Subject: [PATCH] add strapi content default local env --- strapi/.env.example | 3 ++- strapi/kubernetes/base/.env | 1 + strapi/src/admin/app.example.tsx | 2 +- strapi/src/admin/app.tsx | 3 ++- strapi/src/admin/webpack.config.example.ts | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/strapi/.env.example b/strapi/.env.example index 86fb6ca28..b92f943ad 100644 --- a/strapi/.env.example +++ b/strapi/.env.example @@ -5,10 +5,11 @@ APP_KEYS=VivFhCHdok6Ui4H1yhF8DA==,fkXjik+gn+fRLqatGAE8QQ==,M8eRp3VNi4dzdfHOTBlT7 API_TOKEN_SALT=ilrHJDUcrKxGMpxyBh32VA== ADMIN_JWT_SECRET=odOY9wudFDnl//bE+nVWAQ== JWT_SECRET=U4RUqp1ohkwtt6gRopMtdg== +STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE=sk DATABASE_HOST=localhost DATABASE_PORT=5432 DATABASE_NAME=strapi DATABASE_USERNAME=strapi DATABASE_PASSWORD=password -DATABASE_SCHEMA=public \ No newline at end of file +DATABASE_SCHEMA=public diff --git a/strapi/kubernetes/base/.env b/strapi/kubernetes/base/.env index 495992f38..e833581e1 100644 --- a/strapi/kubernetes/base/.env +++ b/strapi/kubernetes/base/.env @@ -3,6 +3,7 @@ MINIO_BUCKET=strapi-homepage DATABASE_CLIENT=postgres DATABASE_HOST=bratislava-strapi-database DATABASE_PORT=5432 +STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE=sk #TEMP, replace with secrets JWT_SECRET=U4RUqp1ohkwtt6gRopMtdg== diff --git a/strapi/src/admin/app.example.tsx b/strapi/src/admin/app.example.tsx index 2c28069f7..f00374822 100644 --- a/strapi/src/admin/app.example.tsx +++ b/strapi/src/admin/app.example.tsx @@ -29,7 +29,7 @@ export default { // 'zh', ], }, - bootstrap(app) { + bootstrap(app: any) { console.log(app) }, } diff --git a/strapi/src/admin/app.tsx b/strapi/src/admin/app.tsx index 339bf2e13..dde0570be 100644 --- a/strapi/src/admin/app.tsx +++ b/strapi/src/admin/app.tsx @@ -3,9 +3,10 @@ export default { // Add slovak as option for strapi admin locales: ['sk'], - // Disable video tutorials and new release notifications + // Disable video tutorials tutorials: false, + // Disable notifications about new Strapi releases notifications: { releases: false, }, diff --git a/strapi/src/admin/webpack.config.example.ts b/strapi/src/admin/webpack.config.example.ts index 4607207f5..0ca5fd7c5 100644 --- a/strapi/src/admin/webpack.config.example.ts +++ b/strapi/src/admin/webpack.config.example.ts @@ -1,4 +1,4 @@ -export default (config, webpack) => { +export default (config: any, webpack: any) => { // Note: we provide webpack above so you should not `require` it // Perform customizations to webpack config // Important: return the modified config