Files
memind/scripts/open-local-test.mjs
T
john 54de1dd8e3 Add local test domain setup (test.*.tkmind.cn).
DNS/TLS/proxy scripts and docs/local-dev.md replace localhost URLs for H5, memind_adm, Plaza, and Ops during local dev.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-17 09:55:04 +08:00

16 lines
457 B
JavaScript

#!/usr/bin/env node
import { spawn } from 'node:child_process';
import { H5_PUBLIC_BASE } from './local-test-config.mjs';
const url = `${H5_PUBLIC_BASE}/?preview=mindspace`;
const platform = process.platform;
const command =
platform === 'darwin'
? ['open', [url]]
: platform === 'win32'
? ['cmd', ['/c', 'start', '', url]]
: ['xdg-open', [url]];
spawn(command[0], command[1], { stdio: 'inherit' });
console.log(`已打开 ${url}`);