import type { NextConfig } from "next"; const nextConfig: NextConfig = { async rewrites() { return [ { source: "/api/:path((?:health|cities|content|notifications|recommendations|routes|services|downloads|meetups|discussions|gigs|profiles|matches|feedback|stats|ai).*)", destination: "http://127.0.0.1:8000/api/:path", }, ]; }, allowedDevOrigins: [ "localhost", "localhost:3000", "127.0.0.1", "127.0.0.1:3000", "172.27.128.1", "172.27.128.1:3000", "192.168.41.222", "192.168.41.222:3000", "192.168.41.222:3001", "http://localhost:3000", "http://127.0.0.1:3000", "http://172.27.128.1:3000", "http://192.168.41.222:3000", ], }; export default nextConfig;