import type { NextConfig } from "next"; const nextConfig: NextConfig = { images: { minimumCacheTTL: 14400, // 4 小时 remotePatterns: [ { protocol: "http", hostname: "localhost" }, ], }, async rewrites() { return [ { source: "/api/:path*", destination: "http://localhost:3001/api/:path*", }, ]; }, }; export default nextConfig;