| 123456789101112131415161718192021222324252627 |
- import { defineConfig } from 'vite'
- import react from '@vitejs/plugin-react'
- import { fileURLToPath, URL } from 'node:url'
- // https://vitejs.dev/config/
- export default defineConfig({
- plugins: [react()],
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url)),
- },
- },
- server: {
- port: 3000,
- proxy: {
- '/api': {
- target: 'http://localhost:8000',
- changeOrigin: true,
- },
- '/admin/': {
- target: 'http://localhost:8000',
- changeOrigin: true,
- },
- },
- },
- })
|