fix: version static assets on test deployment
This commit is contained in:
@@ -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()]
|
||||
|
||||
Reference in New Issue
Block a user