From bfb73a5d5cd0691828000febdca8279945b672ec Mon Sep 17 00:00:00 2001 From: internxt-yu Date: Thu, 12 Nov 2026 17:44:17 +0100 Subject: [PATCH 1/2] reduce size of source map --- next.config.js | 1 + src/pages/file-compressor/[filename].tsx | 4 +++- src/pages/file-converter/[filename].tsx | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index 6d25887c2..5093fb882 100644 --- a/next.config.js +++ b/next.config.js @@ -6,6 +6,7 @@ module.exports = { experimental: { //swcPlugins: [['swc-plugin-coverage-instrument', { coverage: true }]], scrollRestoration: true, + optimizePackageImports: ['@phosphor-icons/react'], }, webpack(config) { config.module.rules.push({ diff --git a/src/pages/file-compressor/[filename].tsx b/src/pages/file-compressor/[filename].tsx index b97b497b0..690472e4f 100644 --- a/src/pages/file-compressor/[filename].tsx +++ b/src/pages/file-compressor/[filename].tsx @@ -1,15 +1,17 @@ 'use client'; import path from 'path'; +import dynamic from 'next/dynamic'; import { buildLocalizedPaths, getLangFolderSlugs } from '@/lib/helpers/staticPaths'; import Layout from '@/components/layout/Layout'; import Navbar from '@/components/layout/navbars/Navbar'; import Footer from '@/components/layout/footers/Footer'; import { ToolsSection } from '@/components/shared/sections/ToolsSection'; -import { ConverterSection } from '@/components/file-compressor/ConverterSection'; import { FeaturesSection } from '@/components/file-compressor/FeaturesSection'; import CtaSection from '@/components/file-compressor/CtaSection'; +const ConverterSection = dynamic(() => import('@/components/file-compressor/ConverterSection').then((mod) => mod.ConverterSection), { ssr: false }); + const FileConverter = ({ metatagsDescriptions, navbarLang, diff --git a/src/pages/file-converter/[filename].tsx b/src/pages/file-converter/[filename].tsx index d755fc763..7192ceb53 100644 --- a/src/pages/file-converter/[filename].tsx +++ b/src/pages/file-converter/[filename].tsx @@ -1,15 +1,17 @@ 'use client'; import path from 'path'; +import dynamic from 'next/dynamic'; import { buildLocalizedPaths, getLangFolderSlugs } from '@/lib/helpers/staticPaths'; import Layout from '@/components/layout/Layout'; import Navbar from '@/components/layout/navbars/Navbar'; import Footer from '@/components/layout/footers/Footer'; import { ToolsSection } from '@/components/shared/sections/ToolsSection'; -import { ConverterSection } from '@/components/file-converter/ConverterSection'; import { FeaturesSection } from '@/components/file-converter/FeaturesSection'; import CtaSection from '@/components/shared/CtaSection'; +const ConverterSection = dynamic(() => import('@/components/file-converter/ConverterSection').then((mod) => mod.ConverterSection), { ssr: false }); + const FileConverter = ({ metatagsDescriptions, navbarLang, From b88fa12f5dd2d0ba95b666fc04baa658fc059310 Mon Sep 17 00:00:00 2001 From: internxt-yu Date: Fri, 13 Nov 2026 09:06:35 +0100 Subject: [PATCH 2/2] reactivate source map upload --- wrangler.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrangler.jsonc b/wrangler.jsonc index d50bbf42a..5e5f87c18 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -13,5 +13,5 @@ "observability": { "enabled": true }, - "upload_source_maps": false + "upload_source_maps": true }