This commit is contained in:
seb
2026-10-11 13:44:34 +02:00
parent e8b2ead83f
commit 1e2f57e941
37 changed files with 386 additions and 584 deletions

View File

@@ -190,7 +190,7 @@ async function main() {
await new Promise((resolve, reject) => {
const build = spawn('npx', ['vite', 'build'], {
cwd: FRONT_ROOT,
env: { ...process.env },
env: { ...process.env, NODE_ENV: 'production' },
stdio: ['ignore', 'pipe', 'pipe'],
});
build.stdout.on('data', () => process.stdout.write('[build] '));
@@ -208,7 +208,7 @@ async function main() {
const server = startProc(
'npx',
['vite', 'preview', '--port', String(VITE_PORT), '--strictPort'],
{ RIG_API_TARGET: `http://localhost:${DUMMY_PORT}` },
{ RIG_API_TARGET: `http://localhost:${DUMMY_PORT}`, NODE_ENV: 'production' },
'preview',
);
await waitForPort(VITE_PORT);
@@ -248,6 +248,7 @@ async function main() {
height: viewport.height,
settleMs: SETTLE_MS,
dialog: route.dialog,
icons: route.icons,
});
const kb = (buf.length / 1024).toFixed(0);