26 lines
515 B
JavaScript
26 lines
515 B
JavaScript
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
import { defineConfig } from 'vite'
|
|
import Uni from '@uni-helper/plugin-uni'
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 5173,
|
|
strictPort: true,
|
|
proxy: {
|
|
'/api/v1': {
|
|
// target: 'http://localhost:8080',
|
|
target: 'http://nas.quitsmok.top:8300',
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
},
|
|
plugins: [Uni()]
|
|
})
|