Cloudflare Headers & Terser Targeting Fixes - #113
Open
Tech-TTGames wants to merge 5 commits into
Open
Conversation
…x minification to avoid downgrading
*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>
[ImgBot] Optimize images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR configures Cloudflare Pages security headers and ensures the build pipeline properly targets modern ES2022 JavaScript without syntax downleveling:
3112219): Addedpublic/_headersto set baseline security rules (HSTS,X-Frame-Options, MIME-sniffing protection) and production caching strategies (1-year immutable caching for/assets/*, zero-cache revalidation forindex.html).fa0adbb): Aligned TypeScript target toES2022and configuredterserOptions(ecma: 2020/2022) invite.config.ts. This prevents Terser from transpiling output down to legacy ES5/ES2015 syntax during the final minification pass.495f0e2)Type of Change
Testing
bunx vite buildto confirm clean asset output.Checklist