u
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user