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
@@ -0,0 +1 @@
import{y as r,J as f,N as m}from"./index-BpoVO8sC.js";function g(o){const{onSuccess:n,successMessage:i="با موفقیت حذف شد",successType:u="success",fallbackErrorMessage:l="خطا در حذف"}=o;async function d(a,e){var t,c;try{(e==null?void 0:e.method)==="post"?await r.post(a):await r.delete(a),f[u](i),await n()}catch(s){m.error({title:((c=(t=s==null?void 0:s.response)==null?void 0:t.data)==null?void 0:c.message)??l,okText:"بستن"})}}return{remove:d}}export{g as u};