feat: 前端启动配置可以通过 IP 访问 (#538)

pull/541/head
zhengkunwang223 2023-04-08 14:04:11 +08:00 committed by GitHub
parent 18029d8369
commit 3de223144d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
server: {
port: viteEnv.VITE_PORT,
open: viteEnv.VITE_OPEN,
host: '0.0.0.0',
proxy: {
'/api/v1': {
target: 'http://localhost:9999/',