This commit is contained in:
dsyoon
2025-08-18 09:40:54 +09:00
commit d56d136522
26 changed files with 4593 additions and 0 deletions

19
vite.config.js Normal file
View File

@@ -0,0 +1,19 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
envPrefix: ['VITE_', 'OPENAI_'],
server: {
// SPA 라우팅 경로(/tools, /lecture 등)와 충돌을 피하기 위해 API 프록시 경로를 '/api' 계열로만 사용합니다.
// 현재 프론트엔드는 절대 경로(http://localhost:8010/...)를 사용하므로 실제로는 프록시가 필요 없습니다.
proxy: {
// 예: 필요한 경우 다음과 같이 사용하세요
// '/api': {
// target: 'http://localhost:8010',
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api/, '')
// }
}
}
});