mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-05-23 08:29:30 +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'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
})
|