Support scripts/.env path
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user