18112d5d0c
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.
17 lines
298 B
JavaScript
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,
|
|
},
|
|
},
|
|
},
|
|
})
|