admin-panel: build into the folder the Docker image actually serves
The Dockerfile does `COPY dist /usr/share/nginx/html` and nginx serves that
folder's root, but vite's outDir was 'dist/export' (carried over from legacy's
vue.config.js). So the deployed root kept serving whatever index.html had been
committed at dist/ — a stale pre-port prototype build (lang="en", title
"Gold Bank — Admin Panel", no ant-design-vue at all, committed 2026-09-10 in
cea3b80). That artifact, not the current source, renders as an unstyled stack
of bullets and bare tables.
outDir is now 'dist' (and 'branchDist'), matching what the image serves and
matching apps/user-app's convention.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
acc41c21d9
commit
9b6b54dc71
Vendored
+8
-5
@@ -1,13 +1,16 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<html lang="fa" dir="rtl">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Gold Bank — Admin Panel</title>
|
||||
<script type="module" crossorigin src="/assets/index-B84ZE15H.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CsChEyRN.css">
|
||||
<title>هنزاگلد — پنل مدیریت</title>
|
||||
<script type="module" crossorigin src="/admin/assets/index-C4VtVyHl.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/admin/assets/index-CYR6yEty.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>␍
|
||||
<div id="app">
|
||||
<!-- Removed by router.afterEach, ported from legacy henza_admin/src/router.js:147-153 -->
|
||||
<div id="loading-bg"></div>
|
||||
</div>␍
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user