Skip to content

Commit

Permalink
Serve SPA static files from mealie package directory
Browse files Browse the repository at this point in the history
  • Loading branch information
chishm committed Dec 8, 2024
1 parent 5b91369 commit 897b4fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mealie/core/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from mealie.core.settings.themes import Theme

from .db_providers import AbstractDBProvider, db_provider_factory
from .static import PACKAGE_DIR


class ScheduleTime(NamedTuple):
Expand Down Expand Up @@ -109,7 +110,7 @@ class AppSettings(AppLoggingSettings):
BASE_URL: str = "http://localhost:8080"
"""trailing slashes are trimmed (ex. `http://localhost:8080/` becomes ``http://localhost:8080`)"""

STATIC_FILES: str = ""
STATIC_FILES: str = str(PACKAGE_DIR / "frontend")
"""path to static files directory (ex. `mealie/dist`)"""

IS_DEMO: bool = False
Expand Down
1 change: 1 addition & 0 deletions mealie/core/settings/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
APP_VERSION = __version__

CWD = Path(__file__).parent
PACKAGE_DIR = CWD.parent.parent
BASE_DIR = CWD.parent.parent.parent

0 comments on commit 897b4fd

Please sign in to comment.