Browse Source

fix build

master
Silberengel 1 month ago
parent
commit
2c06786b50
  1. 4
      public/healthz.json
  2. 12
      vite.config.ts

4
public/healthz.json

@ -2,7 +2,7 @@
"status": "ok", "status": "ok",
"service": "aitherboard", "service": "aitherboard",
"version": "0.2.1", "version": "0.2.1",
"buildTime": "2026-02-11T05:18:47.417Z", "buildTime": "2026-02-11T09:48:17.166Z",
"gitCommit": "unknown", "gitCommit": "unknown",
"timestamp": 1770787127417 "timestamp": 1770803297166
} }

12
vite.config.ts

@ -143,6 +143,18 @@ export default defineConfig({
drop_console: ['log', 'debug'], // Remove console.log and console.debug in production, keep error/warn drop_console: ['log', 'debug'], // Remove console.log and console.debug in production, keep error/warn
passes: 2, // Multiple passes for better compression passes: 2, // Multiple passes for better compression
} }
},
rollupOptions: {
onwarn(warning, warn) {
// Suppress warning about highlight.js default import - it's used in reactive contexts that Vite can't detect
if (warning.message &&
typeof warning.message === 'string' &&
warning.message.includes('highlight.js') &&
warning.message.includes('never used')) {
return;
}
warn(warning);
}
} }
} }
}); });

Loading…
Cancel
Save