SPMS_WEB/react/vite.config.ts
SEAN 37ac854bc8 feat: 인증 페이지 API 연동 (회원가입/로그인/이메일 인증) (#7)
- 회원가입 API 연동 (POST /v1/in/auth/signup)
- 로그인 API 연동 (POST /v1/in/auth/login, next_action 분기)
- 이메일 인증 API 연동 (POST /v1/in/auth/email/verify, /resend)
- API 타입 swagger 스펙에 맞게 수정 (ApiResponse, auth types)
- User 타입 백엔드 AdminInfo 기반으로 변경
- authStore localStorage 영속화 (새로고침 시 인증 유지)
- Vite dev 프록시 설정 (/v1 → devspms)

Closes #7

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 08:00:04 +09:00

22 lines
528 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import path from 'path'
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
proxy: {
'/v1': {
target: 'https://devspms.ipstein.myds.me',
changeOrigin: true,
secure: true,
},
},
},
})