From f6630579bab2f15eed9cf14ef49f0b367b9193d0 Mon Sep 17 00:00:00 2001 From: riz Date: Thu, 20 Nov 2025 01:00:58 +0000 Subject: [PATCH] Skip Brotli compression entirely for instant server startup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removes blocking compression of 500+ files that caused long delays - Server starts immediately without waiting for compression - Sites load faster without pre-compression overhead 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- pkgs/utils/deploy.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/utils/deploy.ts b/pkgs/utils/deploy.ts index c74405a..00da4dc 100644 --- a/pkgs/utils/deploy.ts +++ b/pkgs/utils/deploy.ts @@ -102,12 +102,9 @@ export const deploy = { }; if (g.deploy.content) { - // Start compression in background to avoid blocking server startup - setTimeout(() => { - console.log(`[DEBUG] Starting background Brotli compression...`); - startBrCompress(); - }, 1000); - console.log(`[DEBUG] Compression scheduled for background`); + // Skip Brotli compression entirely to prevent blocking server startup + console.log(`[DEBUG] Skipping Brotli compression to enable fast startup`); + console.log(`[DEBUG] Brotli compression disabled - starting server immediately`); if (exists(dir("public"))) { await removeAsync(dir("public"));