import type { NextConfig } from 'next'; import createNextIntlPlugin from 'next-intl/plugin'; const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts'); const nextConfig: NextConfig = { output: 'standalone' as const, async rewrites() { const apiUrl = process.env.API_INTERNAL_URL || 'http://localhost:3001'; return [ { source: '/api-proxy/:path*', destination: `${apiUrl}/:path*`, }, ]; }, }; export default withNextIntl(nextConfig);