Set vite base to /app/ to support landing-page + app subdirectory site structure

The marketing landing page is served at root (/), and the uni-app SPA
is served at /app/. Setting base: '/app/' ensures all static asset
references (CSS, JS, favicon) are correctly prefixed for the new
subdirectory deployment.
This commit is contained in:
TradeMate Dev
2026-05-21 09:38:39 +08:00
parent c397740748
commit 18112d5d0c
+1
View File
@@ -2,6 +2,7 @@ import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni' import uni from '@dcloudio/vite-plugin-uni'
export default defineConfig({ export default defineConfig({
base: '/app/',
plugins: [uni()], plugins: [uni()],
server: { server: {
port: 5173, port: 5173,