forked from enderofwings/NexusOS
feat: add portable NexusOS CLI and packaging
This commit is contained in:
+3
-3
@@ -193,7 +193,7 @@ from .memory.store import store, MemoryItem
|
||||
from .playbooks.store import playbook_store, PlaybookItem
|
||||
from .search import needs_web_search, web_search
|
||||
|
||||
MEMORY_SERVICE = "http://localhost:8001"
|
||||
MEMORY_SERVICE = settings.memory_url
|
||||
|
||||
app = FastAPI(title="Synapse Backend", version=VERSION)
|
||||
|
||||
@@ -1440,7 +1440,7 @@ async def delete_conversation(conversation_id: str):
|
||||
|
||||
# ── Icon branding routes ──────────────────────────────────────────────────────
|
||||
|
||||
_REPO_ASSETS = str(Path(__file__).resolve().parents[1] / "assets")
|
||||
_REPO_ASSETS = str(settings.assets_dir)
|
||||
_ALLOWED_ICON_ROOTS = [
|
||||
"/usr/share/icons",
|
||||
"/usr/share/pixmaps",
|
||||
@@ -1521,7 +1521,7 @@ async def apply_icon_cache_route():
|
||||
# and uses the Vite dev server as before.
|
||||
from fastapi.staticfiles import StaticFiles # noqa: E402
|
||||
|
||||
_DIST = Path(__file__).resolve().parent.parent / "interface" / "web" / "dist"
|
||||
_DIST = settings.web_dist_dir
|
||||
if _DIST.is_dir():
|
||||
app.mount("/", StaticFiles(directory=str(_DIST), html=True), name="ui")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user