Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
help: Pre compress astro build files before serving.
Shubham Padia57b7ada2e444
diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 0fb13c9ca07..ebd856bcc64 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -549,6 +549,9 @@ importers:astro:specifier: ^5.1.2version: 5.13.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ astro-compressor:+ specifier: ^1.1.2+ version: 1.1.2hast-util-from-html:specifier: ^2.0.3version: 2.0.3@@ -3265,6 +3268,10 @@ packages:resolution: {integrity: sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==}hasBin: true+ resolution: {integrity: sha512-BsX6ypOkRff2g7e5vA47Vlpq9MfVxAo4pXzfkJvXTSzzrSYvf8m3e0lbyGK6eReSzWcAPXymOTIoooqDX1BTlA==}+ engines: {node: '>=22.15.0 <23.0.0 || >=23.8.0'}+resolution: {integrity: sha512-JepyLROIad6f44uyqMF6HKE2QbunNzp3mYKRcPoDGt0QkxXmH222FAFC64WTyQu2Kg8NNEXHTN/sWuUId9sSxw==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}@@ -12948,6 +12955,8 @@ snapshots:+ [email protected]: {}+dependencies:'@astrojs/compiler': 2.12.2diff --git a/puppet/zulip/files/nginx/zulip-include-frontend/app b/puppet/zulip/files/nginx/zulip-include-frontend/appindex bb990796475..d83007e8836 100644--- a/puppet/zulip/files/nginx/zulip-include-frontend/app+++ b/puppet/zulip/files/nginx/zulip-include-frontend/app@@ -36,10 +36,7 @@ location ~ ^(/help(?:/[^/]+)*)/+$ {location /help {alias $help_alias;- gzip on;- gzip_min_length 1000;- gzip_proxied expired no-cache no-store private auth;- gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;+ gzip_static on;include /etc/nginx/zulip-include/headers;add_header Access-Control-Allow-Origin *;add_header Timing-Allow-Origin *;diff --git a/starlight_help/astro.config.mjs b/starlight_help/astro.config.mjsindex f7d182f3b27..c645278a3af 100644--- a/starlight_help/astro.config.mjs+++ b/starlight_help/astro.config.mjs@@ -4,6 +4,7 @@ import * as fs from "node:fs";import starlight from "@astrojs/starlight";import {defineConfig, envField} from "astro/config";+import compressor from "astro-compressor";import Icons from "unplugin-icons/vite";// https://astro.build/config@@ -73,6 +74,11 @@ export default defineConfig({},},integrations: [+ compressor({+ gzip: true,+ brotli: false,+ zstd: false,+ }),starlight({title: "Zulip help center",favicon: "../static/images/favicon.svg",diff --git a/starlight_help/package.json b/starlight_help/package.jsonindex 78143f98795..098705e3e55 100644--- a/starlight_help/package.json+++ b/starlight_help/package.json@@ -14,6 +14,7 @@"@astrojs/starlight": "^0.35.1","@iconify-json/fa": "^1.2.1","astro": "^5.1.2",+ "astro-compressor": "^1.1.2","hast-util-from-html": "^2.0.3","hast-util-to-html": "^9.0.5","mdast-util-to-string": "^4.0.0",diff --git a/version.py b/version.pyindex abc359bee20..f47b4d065af 100644--- a/version.py+++ b/version.py@@ -49,4 +49,4 @@ API_FEATURE_LEVEL = 425# historical commits sharing the same major version, in which case a# minor version bump suffices.-PROVISION_VERSION = (348, 0) # bumped 2025-09-10 to downgrade sharp+PROVISION_VERSION = (348, 1) # bumped 2025-09-10 to add astro-compressor.