import type { NextConfig } from 'next'; const apiProxy = process.env.PLAZA_API_PROXY ?? 'http://127.0.0.1:8080'; const nextConfig: NextConfig = { images: { remotePatterns: [ { protocol: 'https', hostname: '**' }, { protocol: 'http', hostname: '**' }, ], }, async rewrites() { return [{ source: '/api/:path*', destination: `${apiProxy}/api/:path*` }]; }, }; export default nextConfig;