| 1234567891011121314151617181920212223242526272829 |
- import { defineConfig } from 'vite'
- import react from '@vitejs/plugin-react'
- import path from 'path'
- export default defineConfig({
- plugins: [react()],
- build: {
- outDir: '../static',
- emptyOutDir: true,
- },
- server: {
- proxy: {
- '/api/v1/ws': {
- target: 'http://localhost:8000',
- ws: true,
- changeOrigin: true,
- },
- '/api': {
- target: 'http://localhost:8000',
- changeOrigin: true,
- },
- },
- },
- resolve: {
- alias: {
- '@': path.resolve(__dirname, './src'),
- },
- },
- })
|