mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-03 06:23:10 -05:00
feat: consolidate deployment targets and publish to ghcr.io (#2539)
* WIP: proof of concept * basic meta tag injection * add support for scraping public/private links * make tests go brrrrr * cleanup initialization * rewrite build config * remove recipe meta on frontend * make type checker happy * remove other deployment methods * fix issue with JSON response on un-authenticated request * docs updates * update tivy scanner * fix linter stuff * change registry tag * build fixes * fix same mistake I always make
This commit is contained in:
@@ -6,7 +6,7 @@ from fastapi.routing import APIRoute
|
||||
from mealie.core.config import get_app_settings
|
||||
from mealie.core.root_logger import get_logger
|
||||
from mealie.core.settings.static import APP_VERSION
|
||||
from mealie.routes import router, utility_routes
|
||||
from mealie.routes import router, spa, utility_routes
|
||||
from mealie.routes.handlers import register_debug_handler
|
||||
from mealie.routes.media import media_router
|
||||
from mealie.services.scheduler import SchedulerRegistry, SchedulerService, tasks
|
||||
@@ -77,6 +77,9 @@ def api_routers():
|
||||
app.include_router(media_router)
|
||||
app.include_router(utility_routes.router)
|
||||
|
||||
if settings.PRODUCTION and not settings.TESTING:
|
||||
spa.mount_spa(app)
|
||||
|
||||
|
||||
api_routers()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user