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:
@@ -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** |
|
||||
|
||||
Reference in New Issue
Block a user