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
+10
View File
@@ -41,6 +41,16 @@ different Compose project name for each application.
## Domains (container ports)
Same host (path-based) — default in this repo:
| Service | Path | Port | Notes |
|---|---|---|---|
| `user-app-v2` | `/` | **80** | |
| `admin-panel` | `/admin` | **80** | Strip Path on. Build with `ADMIN_PANEL_BASE=/admin/` (default) so `index.html` links `/admin/assets/…`. |
| `api` | (optional) | **3000** | |
Or separate subdomains — set `ADMIN_PANEL_BASE=/` before `pnpm build:release`:
| Service | Domain | Port |
|---|---|---|
| `admin-panel` | admin.example.com | **80** |