Files
trade-assistant/uni-app/vite.config.js
T
TradeMate Dev 18112d5d0c 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.
2026-05-21 09:38:39 +08:00

17 lines
298 B
JavaScript

import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
export default defineConfig({
base: '/app/',
plugins: [uni()],
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
},
},
},
})