How we discovered that three redirect constant files were shipping 316KB of dead weight to every browser, and why moving them to server middleware with a database fallback cut our JavaScript bundle by a third.
I inherited a Nuxt 3 project that was costing over $50/day in Vercel bandwidth. The culprit? A single wildcard import pulling in the entire Font Awesome library. Here’s how I found and fixed it.