mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-05-22 07:59:31 +08:00
18 lines
314 B
JavaScript
18 lines
314 B
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
// 开启代理服务
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
server: {
|
|
port: 5173,
|
|
host: true,
|
|
proxy: {
|
|
'^/back/.*$': {
|
|
target: 'http://localhost:80'
|
|
}
|
|
}
|
|
}
|
|
})
|