crush-level-web/next.config.ts

40 lines
922 B
TypeScript
Raw Normal View History

2025-12-18 10:59:55 +00:00
import type { NextConfig } from 'next';
2025-12-23 07:20:36 +00:00
import createNextIntlPlugin from 'next-intl/plugin';
// 指定 i18n 配置文件路径,让 next-intl 知道支持的语言
const withNextIntl = createNextIntlPlugin('./src/lib/i18n.ts');
2025-11-13 08:38:25 +00:00
const nextConfig: NextConfig = {
2025-12-24 08:28:21 +00:00
reactStrictMode: false,
2025-11-13 08:38:25 +00:00
/* config options here */
images: {
remotePatterns: [
{
2025-11-28 06:31:36 +00:00
protocol: 'https',
hostname: 'picsum.photos',
2025-11-13 08:38:25 +00:00
},
{
2025-11-28 06:31:36 +00:00
protocol: 'https',
hostname: 'public-pictures.epal.gg',
2025-11-13 08:38:25 +00:00
},
{
2025-11-28 06:31:36 +00:00
protocol: 'https',
hostname: 'hhb.crushlevel.ai',
2025-11-13 08:38:25 +00:00
},
{
2025-11-28 06:31:36 +00:00
protocol: 'https',
hostname: 'sub.crushlevel.ai',
2025-11-13 08:38:25 +00:00
},
{
2025-11-28 06:31:36 +00:00
protocol: 'https',
hostname: 'img.crushlevel.ai',
},
2025-11-13 08:38:25 +00:00
],
},
2025-12-18 10:59:55 +00:00
typescript: {
// 构建时忽略所有 TypeScript 错误
ignoreBuildErrors: true,
},
};
2025-11-13 08:38:25 +00:00
2025-12-23 07:20:36 +00:00
export default withNextIntl(nextConfig);