From 2c06786b502fff99ef6775f4f8d57b2a6b0734ea Mon Sep 17 00:00:00 2001 From: Silberengel Date: Wed, 11 Feb 2026 10:48:30 +0100 Subject: [PATCH] fix build --- public/healthz.json | 4 ++-- vite.config.ts | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/public/healthz.json b/public/healthz.json index 9b366e4..011f953 100644 --- a/public/healthz.json +++ b/public/healthz.json @@ -2,7 +2,7 @@ "status": "ok", "service": "aitherboard", "version": "0.2.1", - "buildTime": "2026-02-11T05:18:47.417Z", + "buildTime": "2026-02-11T09:48:17.166Z", "gitCommit": "unknown", - "timestamp": 1770787127417 + "timestamp": 1770803297166 } \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 4d504f7..d61c387 100644 --- a/vite.config.ts +++ b/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 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); + } } } });