mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-07 04:22:47 +08:00
25 lines
478 B
TypeScript
25 lines
478 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
// 代理 API 请求到后端服务器
|
|
'/api': {
|
|
target: 'http://localhost:8000',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
main: 'index.html',
|
|
'plugin-frame': 'plugin-frame.html',
|
|
},
|
|
},
|
|
},
|
|
})
|