docs: replace environment-specific IPs with localhost
This commit is contained in:
@@ -69,7 +69,7 @@ const data = (j) => (j && j.data !== undefined ? j.data : j);
|
||||
|
||||
async function main() {
|
||||
const env = loadEnv(path.join(ROOT, '.env'));
|
||||
const base = (env.LIBREDESK_BASE_URL || 'http://192.168.31.61:9000').replace(/\/+$/, '');
|
||||
const base = (env.LIBREDESK_BASE_URL || 'http://localhost:9000').replace(/\/+$/, '');
|
||||
const required = ['WA_PHONE_NUMBER_ID', 'WA_WABA_ID', 'WA_ACCESS_TOKEN', 'WA_APP_SECRET', 'WA_VERIFY_TOKEN'];
|
||||
const missing = required.filter((k) => !env[k]);
|
||||
if (missing.length) throw new Error(`.env 缺少: ${missing.join(', ')}`);
|
||||
|
||||
Reference in New Issue
Block a user