Skip to content

Cloudflare Headers & Terser Targeting Fixes - #113

Open
Tech-TTGames wants to merge 5 commits into
TicketsBot-cloud:masterfrom
Tech-TTGames:master
Open

Cloudflare Headers & Terser Targeting Fixes#113
Tech-TTGames wants to merge 5 commits into
TicketsBot-cloud:masterfrom
Tech-TTGames:master

Conversation

@Tech-TTGames

@Tech-TTGames Tech-TTGames commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Description

This PR configures Cloudflare Pages security headers and ensures the build pipeline properly targets modern ES2022 JavaScript without syntax downleveling:

  • Headers & Security (3112219): Added public/_headers to set baseline security rules (HSTS, X-Frame-Options, MIME-sniffing protection) and production caching strategies (1-year immutable caching for /assets/*, zero-cache revalidation for index.html).
  • Build Target & Minification (fa0adbb): Aligned TypeScript target to ES2022 and configured terserOptions (ecma: 2020/2022) in vite.config.ts. This prevents Terser from transpiling output down to legacy ES5/ES2015 syntax during the final minification pass.
  • Fixes favicon issues (495f0e2)

Type of Change

  • Bug fix
  • New feature
  • Breaking change

Testing

  • Ran bunx vite build to confirm clean asset output.

Checklist

  • My code follows the style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

@Tech-TTGames
Tech-TTGames requested a review from a team as a code owner August 27, 2026 15:16
Tech-TTGames and others added 3 commits August 27, 2026 18:24
*Total -- 397.89kb -> 351.98kb (11.54%)

/frontend/public/images/multipanel_buttons.png -- 20.18kb -> 13.32kb (33.99%)
/frontend/public/images/panel_message.png -- 20.50kb -> 13.63kb (33.5%)
/frontend/public/images/notification_channel.png -- 32.91kb -> 23.18kb (29.55%)
/frontend/public/images/transcript_channel.png -- 48.23kb -> 34.02kb (29.46%)
/frontend/public/images/multipanel_dropdown.png -- 29.89kb -> 22.19kb (25.77%)
/frontend/public/web-app-manifest-512x512.png -- 57.81kb -> 57.27kb (0.93%)
/frontend/public/favicon.svg -- 188.38kb -> 188.37kb (0%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants