site/admin-ui: relative asset base for single-origin path prefix

Use base './' so built index.html references ./assets/... instead of
/assets/..., letting the SPAs work under the Easy Launcher's
single-origin path prefix (https://<apex>/__dn/admin/) as well as the
subdomain layout. Root-absolute paths would skip the prefix and 404.
This commit is contained in:
Alexa
2026-05-31 12:33:16 +03:00
parent a9518b08ab
commit 1eba8d9345
2 changed files with 13 additions and 2 deletions
+4 -1
View File
@@ -8,7 +8,10 @@ import path from 'node:path';
// any extra publish wiring.
export default defineConfig({
plugins: [react()],
base: '/',
// Relative-base — see admin-ui/vite.config.ts. Same single-origin
// path-prefix scenario applies if the site ever gets opened through
// `https://<apex>/__dn/www/`.
base: './',
resolve: {
alias: { '@': path.resolve(__dirname, 'src') },
},