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
+2 -2
View File
@@ -89,7 +89,7 @@ Never create an opportunity before the contact is verified.`;
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 c = createClient(base);
await c.post('/api/v1/auth/login', { email: env.LIBREDESK_SYSTEM_EMAIL || 'System', password: env.LIBREDESK_SYSTEM_USER_PASSWORD });
console.log('登录成功');
@@ -147,7 +147,7 @@ async function main() {
launcher: { position: 'right', icon_scale: 100, spacing: { side: 24, bottom: 24 } },
greeting_message: 'Hi! How can we help you today?',
chat_introduction: 'Ask about products, orders, shipping or returns.',
trusted_domains: ['192.168.31.61:8088', 'localhost:8088', '127.0.0.1:8088', '192.168.31.61', 'localhost', '127.0.0.1', 'www.yehwang.com', 'yehwang.com'],
trusted_domains: ['localhost:8088', '127.0.0.1:8088', 'localhost', '127.0.0.1', 'www.yehwang.com', 'yehwang.com'],
help: { help_center_id: 0 },
users: { allow_start_conversation: true, prevent_multiple_conversations: false },
visitors: { allow_start_conversation: true, prevent_multiple_conversations: false },