import type { NextConfig } from "next"; const nextConfig: NextConfig = { // Allow other devices on the network to receive live updates allowedDevOrigins: ["192.168.0.31"], async rewrites() { return [ { source: '/api/:path*', destination: 'http://127.0.0.1:8000/api/:path*', // Proxy to FastAPI backend }, ]; }, }; export default nextConfig;