/** @type {import('next').NextConfig} */ const nextConfig = { eslint: { ignoreDuringBuilds: true }, typescript: { ignoreBuildErrors: true }, async rewrites() { // In development, proxy /api/v1/* to FastAPI backend const backendUrl = process.env.BACKEND_URL || 'http://localhost:8000'; return [ { source: '/api/v1/:path*', destination: `${backendUrl}/api/v1/:path*`, }, ]; }, async headers() { return [ { source: '/(.*)', headers: [ { key: 'X-Frame-Options', value: 'DENY' }, { key: 'X-Content-Type-Options', value: 'nosniff' }, { key: 'X-XSS-Protection', value: '1; mode=block' }, ], }, ]; }, }; module.exports = nextConfig;