help: Pre compress astro build files before serving.

This way nginx doesn't have to compress it every time.
This commit is contained in:
Shubham Padia
2025-09-05 12:44:50 +00:00
committed by Alex Vandiver
parent 1a34016e4a
commit 57b7ada2e4
5 changed files with 18 additions and 5 deletions

9
pnpm-lock.yaml generated
View File

@@ -549,6 +549,9 @@ importers:
astro:
specifier: ^5.1.2
version: 5.13.5(@types/node@22.18.1)(encoding@0.1.13)(jiti@2.5.1)(rollup@4.50.0)(terser@5.44.0)(typescript@5.9.2)(yaml@2.8.1)
astro-compressor:
specifier: ^1.1.2
version: 1.1.2
hast-util-from-html:
specifier: ^2.0.3
version: 2.0.3
@@ -3265,6 +3268,10 @@ packages:
resolution: {integrity: sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==}
hasBin: true
astro-compressor@1.1.2:
resolution: {integrity: sha512-BsX6ypOkRff2g7e5vA47Vlpq9MfVxAo4pXzfkJvXTSzzrSYvf8m3e0lbyGK6eReSzWcAPXymOTIoooqDX1BTlA==}
engines: {node: '>=22.15.0 <23.0.0 || >=23.8.0'}
astro-eslint-parser@1.2.2:
resolution: {integrity: sha512-JepyLROIad6f44uyqMF6HKE2QbunNzp3mYKRcPoDGt0QkxXmH222FAFC64WTyQu2Kg8NNEXHTN/sWuUId9sSxw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -12948,6 +12955,8 @@ snapshots:
astring@1.9.0: {}
astro-compressor@1.1.2: {}
astro-eslint-parser@1.2.2:
dependencies:
'@astrojs/compiler': 2.12.2