mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-08-17 09:26:04 +00:00
Gate compression behind compress feature flag.
Compression increases memory use during updates and can cause OOMs.
This commit is contained in:
+3
-1
@@ -155,7 +155,9 @@ func PrepareManifest(manifest *Manifest) error {
|
||||
log.Printf("redirects ok: %d rules\n", len(manifest.Redirects))
|
||||
}
|
||||
|
||||
CompressFiles(manifest)
|
||||
if config.Feature("compress") {
|
||||
CompressFiles(manifest)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user