import type { NextConfig } from 'next'; import createNextIntlPlugin from 'next-intl/plugin'; // 指定 i18n 配置文件路径,让 next-intl 知道支持的语言 const withNextIntl = createNextIntlPlugin('./src/lib/i18n.ts'); const nextConfig: NextConfig = { /* config options here */ images: { remotePatterns: [ { protocol: 'https', hostname: 'picsum.photos', }, { protocol: 'https', hostname: 'public-pictures.epal.gg', }, { protocol: 'https', hostname: 'hhb.crushlevel.ai', }, { protocol: 'https', hostname: 'sub.crushlevel.ai', }, { protocol: 'https', hostname: 'img.crushlevel.ai', }, ], }, typescript: { // 构建时忽略所有 TypeScript 错误 ignoreBuildErrors: true, }, }; export default withNextIntl(nextConfig);