From 18112d5d0c81dbdb9b77c5d1397122441e485465 Mon Sep 17 00:00:00 2001 From: TradeMate Dev Date: Thu, 21 May 2026 09:38:39 +0800 Subject: [PATCH] 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. --- uni-app/vite.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/uni-app/vite.config.js b/uni-app/vite.config.js index aa0619d..78845d9 100644 --- a/uni-app/vite.config.js +++ b/uni-app/vite.config.js @@ -2,6 +2,7 @@ import { defineConfig } from 'vite' import uni from '@dcloudio/vite-plugin-uni' export default defineConfig({ + base: '/app/', plugins: [uni()], server: { port: 5173,