Support scripts/.env path
This commit is contained in:
@@ -15,8 +15,8 @@ if (fs.existsSync(envPath)) {
|
||||
});
|
||||
}
|
||||
|
||||
const AD_ACCOUNT_ID = process.env.META_AD_ACCOUNT_ID;
|
||||
const ACCESS_TOKEN = process.env.META_ACCESS_TOKEN;
|
||||
const AD_ACCOUNT_ID = (process.env.META_AD_ACCOUNT_ID || '1945325153083644').trim();
|
||||
const ACCESS_TOKEN = (process.env.META_ACCESS_TOKEN || '').replace(/\s+/g, '');
|
||||
|
||||
const API_VERSION = 'v19.0';
|
||||
const BASE_URL = `https://graph.facebook.com/${API_VERSION}`;
|
||||
|
||||
Reference in New Issue
Block a user