/** @type {import('next').NextConfig} */ const nextConfig = { images: { remotePatterns: [ { protocol: 'http', hostname: 'localhost', port: '3001', pathname: '/**', }, { protocol: 'http', hostname: '192.168.1.110', port: '3001', pathname: '/**', }, ], }, allowedDevOrigins: ['192.168.1.110:3000', '192.168.1.110'], async rewrites() { return [ { source: '/api/:path*', destination: `${process.env.NEXT_PUBLIC_BACKEND_URL || 'http://localhost:3001'}/api/:path*`, }, ]; }, }; module.exports = nextConfig;