1
0
Fork 0
mirror of https://github.com/Findus23/RPGnotes.git synced 2024-09-19 15:43:45 +02:00

fix manifest path

This commit is contained in:
Lukas Winkler 2023-11-28 21:56:50 +01:00
parent 5c3e1a160d
commit bab3fd7e75
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -7,7 +7,7 @@ from typing import TypedDict
from django.templatetags.static import static
from django_jinja import library
from rpg_notes.settings import STATIC_ROOT
from rpg_notes.secrets import STATICFILES_DIRS
class Asset(TypedDict):
@ -23,7 +23,7 @@ Manifest = dict[str, Asset]
@lru_cache
def load_vite_manifest() -> Manifest:
with (Path(STATIC_ROOT) / "build" / ".vite" / "manifest.json").open() as f:
with (Path(STATICFILES_DIRS[0]) / "build" / ".vite" / "manifest.json").open() as f:
return json.load(f)