16 lines
397 B
TypeScript
16 lines
397 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
// dev 서버: /api·/videos 를 백엔드(FastAPI :8000)로 프록시
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': 'http://localhost:8000',
|
|
'/videos': 'http://localhost:8000',
|
|
},
|
|
},
|
|
})
|