Files
memind/scripts/open-local-test.mjs
T
Your Name b0f5d6a51c Extract memind_adm admin server, add local dev tooling, and remove image-generation.
Split platform admin and ops APIs into standalone admin-server.mjs with network guards; simplify billing to RMB token pricing, refactor user auth, and add rsync deploy plus local-test scripts and docs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-17 16:39:39 -07:00

13 lines
367 B
JavaScript

#!/usr/bin/env node
import { spawnSync } from 'node:child_process';
const vitePort = Number(process.env.VITE_PORT ?? 5173);
const url = `http://127.0.0.1:${vitePort}/?preview=mindspace`;
const result = spawnSync('open', [url], { stdio: 'ignore' });
if (result.status === 0) {
console.log(`已打开 ${url}`);
} else {
console.log(`请手动打开:${url}`);
}