This commit is contained in:
dsyoon
2025-12-27 14:07:27 +09:00
parent 976191d314
commit 58606b7eab
35 changed files with 5133 additions and 1 deletions

17
vite.config.mjs Normal file
View File

@@ -0,0 +1,17 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
envPrefix: ['VITE_', 'OPENAI_'],
server: {
host: '0.0.0.0',
port: 5173,
allowedHosts: ['ncue.net'],
// SPA 라우팅 경로(/tools, /lecture 등)와 충돌을 피하기 위해 API 프록시 경로를 '/api' 계열로만 사용합니다.
// 현재 프론트엔드는 절대 경로(http://localhost:8010/...)를 사용하므로 실제로는 프록시가 필요 없습니다.
proxy: {},
},
});