import type { NextConfig } from 'next' const API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL ?? 'http://localhost:4000' const nextConfig: NextConfig = { reactCompiler: true, allowedDevOrigins: ['http://localhost:3000', 'http://localhost:3001', 'http://192.168.1.50:3000'], async rewrites() { return [ { source: '/api/:path*', destination: `${API_BASE_URL}/:path*`, }, { source: '/labels/:path*', destination: `${API_BASE_URL}/labels/:path*`, }, ] }, } export default nextConfig