mirror of
https://github.com/ktds-dg0501/kt-event-marketing-fe.git
synced 2025-12-06 06:56:24 +00:00
- API 함수 추가: drawWinners, getWinners - 실제 백엔드 서버(localhost:8084)로 추첨 실행 - 당첨자 목록 실시간 조회 및 표시 - 에러 처리 및 로딩 상태 추가 - 재추첨 기능 API 연동 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
562 B
JavaScript
27 lines
562 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
swcMinify: true,
|
|
compiler: {
|
|
emotion: true,
|
|
},
|
|
images: {
|
|
domains: ['localhost'],
|
|
formats: ['image/webp', 'image/avif'],
|
|
},
|
|
env: {
|
|
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080',
|
|
},
|
|
// CORS 우회를 위한 API Proxy 설정
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/proxy/:path*',
|
|
destination: 'http://localhost:8084/api/:path*',
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|