/** @type {import('next').NextConfig} */ const nextConfig = { output: "standalone", async headers() { return ['admin', 'dashboard', 'login', 'payment', 'create-order'].map(segment => ({ source: `/${segment}/:path*`, headers: [{ key: 'X-Robots-Tag', value: 'noindex, nofollow' }], })); }, async rewrites() { return [ { source: '/api/:path*', destination: `${process.env.NEXT_PUBLIC_API_URL}/api/:path*`, }, ]; }, eslint: { ignoreDuringBuilds: true, }, }; module.exports = nextConfig;