diff --git a/CHANGELOG.md b/CHANGELOG.md index 705851c..a1ae77b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), - **Faster favicon loading.** Site icons in the dashboard, referrers, and campaigns now use Next.js image optimization for better caching and lazy loading. - **Tighter name limits.** Site, funnel, and monitor names are now capped at 100 characters instead of 255 — long enough for any real name, short enough to not break the UI. - **Stricter type safety.** Eliminated all `any` types and `@ts-ignore` suppressions across the codebase, so the TypeScript compiler catches more bugs at build time. +- **Smaller page downloads.** Icon imports are now tree-shaken so only the icons actually used are included in the bundle. ### Fixed diff --git a/next.config.ts b/next.config.ts index 57533fe..648d8ee 100644 --- a/next.config.ts +++ b/next.config.ts @@ -12,6 +12,9 @@ const nextConfig: NextConfig = { output: 'standalone', // * Privacy-first: Disable analytics and telemetry productionBrowserSourceMaps: false, + experimental: { + optimizePackageImports: ['react-icons'], + }, images: { remotePatterns: [ {