mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Restores the compression of static files for x86_64 (#6627)
This commit is contained in:
		@@ -7,6 +7,7 @@ import re
 | 
			
		||||
import tempfile
 | 
			
		||||
from os import PathLike
 | 
			
		||||
from pathlib import Path
 | 
			
		||||
from platform import machine
 | 
			
		||||
from typing import Final
 | 
			
		||||
from typing import Optional
 | 
			
		||||
from typing import Union
 | 
			
		||||
@@ -370,7 +371,10 @@ ASGI_APPLICATION = "paperless.asgi.application"
 | 
			
		||||
STATIC_URL = os.getenv("PAPERLESS_STATIC_URL", BASE_URL + "static/")
 | 
			
		||||
WHITENOISE_STATIC_PREFIX = "/static/"
 | 
			
		||||
 | 
			
		||||
_static_backend = "django.contrib.staticfiles.storage.StaticFilesStorage"
 | 
			
		||||
if machine().lower() == "aarch64":  # pragma: no cover
 | 
			
		||||
    _static_backend = "django.contrib.staticfiles.storage.StaticFilesStorage"
 | 
			
		||||
else:
 | 
			
		||||
    _static_backend = "whitenoise.storage.CompressedStaticFilesStorage"
 | 
			
		||||
 | 
			
		||||
STORAGES = {
 | 
			
		||||
    "staticfiles": {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user