From c9763181c32ec3e150f1d1b73ac1c4287cb646f5 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Sun, 13 Sep 2026 21:06:40 -0700 Subject: no html cache, crazy gitignore, manfiest parsing, html file to fstring for replacement. manually copying the manfiest file from jenkins for now --- jb/settings.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'jb/settings.py') diff --git a/jb/settings.py b/jb/settings.py index 1c02075..543a0e8 100644 --- a/jb/settings.py +++ b/jb/settings.py @@ -1,3 +1,4 @@ +import json from functools import lru_cache from os.path import abspath from os.path import dirname as pdirname @@ -16,6 +17,12 @@ BASE_DIR = pdirname(pdirname(abspath(__file__))) BASE_HTML_PATH = Path(BASE_DIR) / "templates" / "base.html" BASE_HTML = BASE_HTML_PATH.read_text() +MANIFEST_PATH = Path(BASE_DIR) / "jb-ui" / "dist/.vite/manifest.json" + + +def load_manifest(): + with open(MANIFEST_PATH) as f: + return json.load(f) class Settings(GRLBaseSettings): -- cgit v1.2.3