Fix incorrect env vars
Some checks failed
Build release Docker image / Build Docker Images (push) Failing after 32s

This commit is contained in:
2026-03-05 18:35:01 +01:00
parent bc63c56da6
commit 39046c8d35

View File

@@ -2,7 +2,8 @@ import cronTasks from "./cron-tasks";
export default ({ env }) => { export default ({ env }) => {
// DEBUG: On vérifie ce que Strapi reçoit vraiment // DEBUG: On vérifie ce que Strapi reçoit vraiment
const appKeys = env.array("APP_KEYS"); //const appKeys = env.array("APP_KEYS");
const appKeys = env.array("APP_KEYS", ["defaultKey1", "defaultKey2"]);
console.log("------------------------------------------------"); console.log("------------------------------------------------");
console.log("Key Check:", appKeys.length > 0 ? "CHARGÉES ✅" : "VIDES ❌"); console.log("Key Check:", appKeys.length > 0 ? "CHARGÉES ✅" : "VIDES ❌");
console.log("Key Type:", typeof appKeys[0]); // Doit afficher 'string' console.log("Key Type:", typeof appKeys[0]); // Doit afficher 'string'