From feb4af39a4dc6c8eaca219b5879f8ee0c903cf73 Mon Sep 17 00:00:00 2001 From: mtvpls Date: Tue, 2 Dec 2025 23:20:46 +0800 Subject: [PATCH] try fix build --- .gitignore | 8 +++++++- next.config.js | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d2a80c9..8669019 100644 --- a/.gitignore +++ b/.gitignore @@ -42,4 +42,10 @@ sitemap-*.xml # generated files src/lib/runtime.ts -public/manifest.json \ No newline at end of file +public/manifest.json + +# PWA files +public/sw.js +public/sw.js.map +public/workbox-*.js +public/workbox-*.js.map \ No newline at end of file diff --git a/next.config.js b/next.config.js index eef0435..c5d725c 100644 --- a/next.config.js +++ b/next.config.js @@ -8,7 +8,7 @@ const nextConfig = { }, reactStrictMode: false, - swcMinify: false, + swcMinify: true, experimental: { instrumentationHook: process.env.NODE_ENV === 'production',