fix admin and montzar
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user