lovart3/next.config.ts
2025-12-17 20:15:18 +08:00

34 lines
902 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// 禁用 cacheComponents 以支持 dynamic = "force-dynamic"
// cacheComponents: true,
typescript: {
ignoreBuildErrors: true, // 临时禁用类型检查以加快开发
},
images: {
remotePatterns: [
{
hostname: "avatar.vercel.sh",
},
{
protocol: "https",
//https://nextjs.org/docs/messages/next-image-unconfigured-host
hostname: "*.public.blob.vercel-storage.com",
},
{
// 支持 HTTP 协议的 MinIO / S3(本地或内网部署)
protocol: "http",
hostname: "**", // 允许所有 HTTP 域名(MinIO 等)
},
{
// 支持 HTTPS 协议的 S3 / MinIO(公网部署)
protocol: "https",
hostname: "**", // 允许所有 HTTPS 域名
},
],
},
};
export default nextConfig;