Initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { defineConfig } from "vite";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
|
||||
server: {
|
||||
// 개발 서버 포트
|
||||
port: 5173,
|
||||
// FastAPI 백엔드로 API 요청을 프록시
|
||||
proxy: {
|
||||
"/api": {
|
||||
target: "http://localhost:8000",
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
build: {
|
||||
// 빌드 결과물 출력 디렉토리 (FastAPI가 이 경로를 서빙)
|
||||
outDir: "dist",
|
||||
// 이전 빌드 결과물 자동 삭제
|
||||
emptyOutDir: true,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user