fix: version static assets on test deployment

This commit is contained in:
Md Bayazid Bostame
2026-03-30 12:51:21 +02:00
parent 97c1cad3ef
commit 34b5e98b66
4 changed files with 11 additions and 7 deletions

View File

@@ -1,9 +1,11 @@
import os
import sys
import time
from pathlib import Path
from urllib.parse import urlsplit
BASE_DIR = Path(__file__).resolve().parent.parent
STATIC_ASSET_VERSION = os.getenv('STATIC_ASSET_VERSION', str(int(time.time())))
def _split_csv_env(name: str, default: str = ''):
return [item.strip() for item in os.getenv(name, default).split(',') if item.strip()]