Files

19 lines
393 B
TypeScript
Raw Permalink Normal View History

import { defineConfig } from 'vite'
import uniPlugin from '@dcloudio/vite-plugin-uni'
// Handle both ESM default export and CJS module.exports
const uni = (uniPlugin as any).default || uniPlugin
export default defineConfig({
plugins: [uni()],
server: {
port: 8080,
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true
}
}
}
})