mirror of
https://github.com/ktds-dg0501/kt-event-marketing-fe.git
synced 2025-12-06 06:16:24 +00:00
- 5개 Participation API 프록시 라우트에 /api/v1/participations 베이스 경로 추가
- 백엔드 Swagger 경로 구조에 맞춰 URL 수정
- GET /api/v1/events/{eventId}/participants
- GET /api/v1/events/{eventId}/winners
- POST /api/v1/events/{eventId}/draw-winners
- GET /api/v1/events/{eventId}/participants/{participantId}
- POST /api/v1/events/{eventId}/participate
- nginx.conf 버퍼 설정 최적화 (proxy_buffers 8 64k)
- next.config.js output 'standalone' 설정 유지
33 lines
802 B
JavaScript
33 lines
802 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
swcMinify: true,
|
|
output: 'standalone',
|
|
compiler: {
|
|
emotion: true,
|
|
},
|
|
images: {
|
|
domains: ['localhost', 'blobkteventstorage.blob.core.windows.net'],
|
|
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*',
|
|
},
|
|
// Event Service API Proxy (8080 포트)
|
|
{
|
|
source: '/api/v1/events/:path*',
|
|
destination: 'http://localhost:8080/api/v1/events/:path*',
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|