docs: replace environment-specific IPs with localhost

This commit is contained in:
wangliang
2026-10-23 10:41:14 +08:00
parent 2803fb5dd1
commit 1ae25f1597
27 changed files with 66 additions and 66 deletions
+3 -3
View File
@@ -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');