Files
cnd2025-hw3/frontend/vite.config.ts
yubintw 9df48062d4 init
2024-03-25 21:39:05 +08:00

16 lines
290 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://localhost:8888',
changeOrigin: true
}
}
}
})