Specify manifest path in prod

This commit is contained in:
Daoud Clarke 2023-11-09 13:43:34 +00:00
parent 66e2da0c89
commit 1b23076286
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,4 @@
FROM node:hydrogen-bullseye as front-end
nodeFROM node:hydrogen-bullseye as front-end
COPY front-end /front-end
WORKDIR /front-end

View file

@ -11,6 +11,7 @@ SECRET_KEY = os.environ["DJANGO_SECRET_KEY"]
STATIC_ROOT = "/app/static/"
DJANGO_VITE_ASSETS_PATH = "/front-end-build/"
DJANGO_VITE_MANIFEST_PATH = Path(DJANGO_VITE_ASSETS_PATH) / "manifest.json"
STATICFILES_DIRS = [DJANGO_VITE_ASSETS_PATH]
DATABASES = {'default': dj_database_url.config(default=os.environ["DATABASE_URL"])}