kt-event-marketing-fe/next.config.js
Cherry Kim 0c14cfe289
Merge pull request #7 from ktds-dg0501/feature/content
AI 이미지 생성 기능 완성 및 실제 API 연동
2025-10-29 10:06:52 +09:00

27 lines
606 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
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*',
},
]
},
}
module.exports = nextConfig