next.config.ts 361 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 import type { NextConfig } from "next"; const nextConfig: NextConfig = { allowedDevOrigins: ["192.168.1.71"], // /api/* 的代理改由 src/app/api/[...path]/route.ts(catch-all 流式代理)接管。 // 不再用 rewrites:它会整体缓冲请求体与响应,导致大文件上传被卡、SSE 无法实时流式。 }; export default nextConfig;