kt-event-marketing-fe/next.config.js
2025-10-31 15:42:12 +09:00

28 lines
625 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: 'http://kt-event-marketing-api.20.214.196.128.nip.io',
},
// CORS 우회를 위한 API Proxy 설정
async rewrites() {
return [
{
source: '/api/proxy/:path*',
destination: 'http://localhost:8084/api/:path*',
},
]
},
}
module.exports = nextConfig