fix(ui): render the exact production version

This commit is contained in:
ogt
2026-07-11 10:24:59 +08:00
parent f9c77343f3
commit c7906d5b80
5 changed files with 14 additions and 4 deletions

1
app.py
View File

@@ -144,6 +144,7 @@ app = Flask(__name__,
template_folder=TEMPLATE_DIR,
static_folder=STATIC_DIR)
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = timedelta(days=7)
app.config['SYSTEM_VERSION'] = SYSTEM_VERSION
app.config.update(
COMPRESS_ALGORITHM=['br', 'gzip'],
COMPRESS_LEVEL=6,