From 7b7e5417f53f26bfbef505626f2b9f5abd2d69e4 Mon Sep 17 00:00:00 2001 From: "Tech. TTGames" <50541739+Tech-TTGames@users.noreply.github.com> Date: Thu, 27 Aug 2026 17:53:43 +0300 Subject: [PATCH 1/4] Set TypeScript target to ES2022 and configure Terser for modern syntax minification to avoid downgrading --- frontend/tsconfig.json | 1 + frontend/vite.config.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 3575c101..0eee2a26 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -7,6 +7,7 @@ }, "strict": true, "skipLibCheck": true, + "target": "ES2022", "module": "ESNext", "moduleResolution": "bundler", "allowImportingTsExtensions": true, diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 546efad6..38841128 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -100,6 +100,9 @@ export default defineConfig(({ mode }) => { }, target: "es2022", minify: "terser", + terserOptions: { + ecma: 2022, // Retains modern ES syntax during minification + }, sourcemap: false, }, }; From fa2a931465e569866cf7113277d56fd9e0eefb60 Mon Sep 17 00:00:00 2001 From: "Tech. TTGames" <50541739+Tech-TTGames@users.noreply.github.com> Date: Thu, 27 Aug 2026 17:56:15 +0300 Subject: [PATCH 2/4] Add default security and cache headers for all routes --- frontend/public/_headers | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 frontend/public/_headers diff --git a/frontend/public/_headers b/frontend/public/_headers new file mode 100644 index 00000000..43034f4c --- /dev/null +++ b/frontend/public/_headers @@ -0,0 +1,16 @@ +# Default security and cache headers for all routes +/* + X-Frame-Options: DENY + X-Content-Type-Options: nosniff + Referrer-Policy: strict-origin-when-cross-origin + Permissions-Policy: camera=(), microphone=(), geolocation=() + Strict-Transport-Security: max-age=31536000; includeSubDomains; preload + Cache-Control: public, max-age=0, must-revalidate + +# Immutable 1-year cache for Vite hashed production bundle assets +/assets/* + Cache-Control: public, max-age=31536000, immutable + +# Prevent stale HTML caching so new deployments hit users immediately +/index.html + Cache-Control: public, max-age=0, must-revalidate \ No newline at end of file From 495f0e216a4ee6a397e338a3fc1e82e85d1cbff1 Mon Sep 17 00:00:00 2001 From: "Tech. TTGames" <50541739+Tech-TTGames@users.noreply.github.com> Date: Thu, 27 Aug 2026 18:24:14 +0300 Subject: [PATCH 3/4] Update web app manifest and favicon versioning for cache busting --- frontend/index.html | 12 ++++++------ frontend/public/apple-touch-icon.png | Bin 14014 -> 14090 bytes frontend/public/favicon-96x96.png | Bin 6011 -> 6087 bytes frontend/public/favicon.ico | Bin 15086 -> 15086 bytes frontend/public/favicon.svg | 18 +----------------- frontend/public/site.webmanifest | 4 ++-- frontend/public/web-app-manifest-192x192.png | Bin 15717 -> 15793 bytes frontend/public/web-app-manifest-512x512.png | Bin 59121 -> 59197 bytes 8 files changed, 9 insertions(+), 25 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index bb628f7a..c67c0ac1 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -20,16 +20,16 @@ - + - - - - + + + + - +