fix admin and montzar

This commit is contained in:
mahmood
2026-09-16 11:59:35 +03:30
parent 262122cb3a
commit 4743cfb89f
96 changed files with 204 additions and 381 deletions
+6 -2
View File
@@ -10,8 +10,12 @@ export default defineConfig(({ mode }) => {
const isBranch = mode === 'branch';
return {
// legacy: publicPath: isBranch ? '/branch/' : 'admin/'
base: isBranch ? '/branch/' : '/admin/',
// Admin is served on its own subdomain (e.g. adm.bnk…), so assets must be
// rooted at `/`. Legacy used publicPath `admin/` because it shared a host
// path; keeping that here made index.html request `/admin/assets/…` while
// the image only has `/assets/…` → white screen 404.
// Branch mode still mounts under `/branch/` when that mode is used.
base: isBranch ? '/branch/' : '/',
plugins: [vue()],
resolve: {
alias: {