Fix incorrect env vars
Some checks failed
Build release Docker image / Build Docker Images (push) Failing after 32s
Some checks failed
Build release Docker image / Build Docker Images (push) Failing after 32s
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user