Files
ThriveX-Blog/next.config.mjs
宇阳 578426488e 更新。Gitignore和next.js配置自定义构建输出目录
在next.config.mjs中将build输出目录改为next
-更新。Gitignore以反映新的输出目录
—调整了tsconfig。Json包含next/types*。为更好的类型支持
2025-12-03 21:58:01 +08:00

26 lines
625 B
JavaScript
Executable File

/** @type {import('next').NextConfig} */
const nextConfig = {
// 自定义构建输出目录
distDir: 'next',
// 关闭严格模式
reactStrictMode: false,
// 配置图片来源
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
{
protocol: 'http',
hostname: '**',
}
],
},
eslint: {
// 即使有 ESLint 错误,构建也会继续,不会因为 ESLint 报错而中断
ignoreDuringBuilds: true,
},
};
export default nextConfig;