18 lines
338 B
TypeScript
18 lines
338 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 3000,
|
|
open: true,
|
|
host: true,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'https://dora.coz.io/',
|
|
changeOrigin: true
|
|
},
|
|
}
|
|
}
|
|
})
|