fix(admin-panel): serve assets under /admin/ for same-host path deploy

Default Vite base to /admin/ (ADMIN_PANEL_BASE) so Dokploy Path+/admin + Strip Path resolves assets instead of the user app root.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
s.esmaeili
2026-10-31 23:24:46 +03:30
co-authored by Cursor
parent 7b0bbc072c
commit 032fa800d9
151 changed files with 164 additions and 150 deletions
+3
View File
@@ -19,6 +19,9 @@ DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGR
# ---------------------------------------------------------------------------
API_PORT=3000
ADMIN_PANEL_PORT=5180
# Vite `base` for the admin panel. Default `/admin/` for same-host path deploy
# (Dokploy: Path `/admin` + Strip Path). Use `/` only for a dedicated subdomain.
ADMIN_PANEL_BASE=/admin/
USER_APP_V2_PORT=5182
# API Configuration (kept for any tooling that still reads bare PORT)