import type { NextConfig } from "next"; module.exports = { allowedDevOrigins: ["192.168.1.5"], }; const nextConfig: NextConfig = { /** * 业务 REST / SSE / 认证请求统一经 BFF 路由(/api/proxy、/api/sse、/api/auth), * 在服务端从 httpOnly cookie 读取 token 并注入 Authorization,不再经 rewrites。 * 后端绝对地址由 BFF route 通过 lib/config 的 API_BASE_URL 解析。 */ async rewrites() { return []; }, }; export default nextConfig;