docs: replace environment-specific IPs with localhost
This commit is contained in:
@@ -13,7 +13,6 @@ const path = require('path');
|
||||
|
||||
const ROOT = path.resolve(__dirname, '..');
|
||||
const message = process.argv.slice(2).join(' ') || 'Can you check the status of my order SO-1?';
|
||||
const SITE_ORIGIN = 'http://192.168.31.61:9000';
|
||||
|
||||
function loadEnv(file) {
|
||||
const out = {};
|
||||
@@ -33,8 +32,9 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
||||
|
||||
async function main() {
|
||||
const env = loadEnv(path.join(ROOT, '.env'));
|
||||
const lr = (env.LIBREDESK_BASE_URL || 'http://192.168.31.61:9000').replace(/\/+$/, '');
|
||||
const bridge = (env.BRIDGE_BASE_URL || 'http://192.168.31.61:4100').replace(/\/+$/, '');
|
||||
const SITE_ORIGIN = process.env.SITE_ORIGIN || env.IDENTITY_CORS_ORIGIN || 'http://localhost:9000';
|
||||
const lr = (env.LIBREDESK_BASE_URL || 'http://localhost:9000').replace(/\/+$/, '');
|
||||
const bridge = (env.BRIDGE_BASE_URL || 'http://localhost:4100').replace(/\/+$/, '');
|
||||
const inboxUUID = env.LIBREDESK_INBOX_UUID;
|
||||
if (!inboxUUID) throw new Error('缺少 LIBREDESK_INBOX_UUID');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user