mirror of
https://github.com/LiuYuYang01/ThriveX-Blog.git
synced 2026-05-07 06:07:34 +08:00
26 lines
628 B
JavaScript
Executable File
26 lines
628 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; |