Support scripts/.env path

This commit is contained in:
Hamza-Ayed
2026-07-24 16:49:21 +03:00
parent eacd71349e
commit b47102f36b
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -21,8 +21,8 @@ if (fs.existsSync(envPath)) {
});
}
const META_ACCESS_TOKEN = process.env.META_ACCESS_TOKEN;
const META_PAGE_ID = process.env.META_PAGE_ID;
const META_ACCESS_TOKEN = (process.env.META_ACCESS_TOKEN || '').replace(/\s+/g, '');
const META_PAGE_ID = (process.env.META_PAGE_ID || '1047354938453381').trim();
const GEMINI_API_KEY = process.env.GEMINI_API_KEY;
const GEMINI_MODEL = process.env.GEMINI_MODEL || 'gemini-2.0-flash';