mirror of
https://github.com/LiuYuYang01/ThriveX-Blog.git
synced 2026-05-08 06:39:26 +08:00
refactor(article): 重构版权声明和上下篇文章导航组件 style(article): 优化随机文章标题悬停效果 config: 添加 res.liuyuyang.net 到图片域名白名单
40 lines
1.0 KiB
JavaScript
Executable File
40 lines
1.0 KiB
JavaScript
Executable File
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
// 自定义构建输出目录
|
|
// distDir: 'next',
|
|
// 关闭严格模式
|
|
reactStrictMode: false,
|
|
// 启用 standalone 输出模式(用于 Docker 部署)
|
|
output: 'standalone',
|
|
// 配置图片来源
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'res.liuyuyang.net',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: '**.liuyuyang.net',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'liuyuyang.net',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: '**',
|
|
},
|
|
{
|
|
protocol: 'http',
|
|
hostname: '**',
|
|
}
|
|
],
|
|
},
|
|
eslint: {
|
|
// 即使有 ESLint 错误,构建也会继续,不会因为 ESLint 报错而中断
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
};
|
|
|
|
export default nextConfig; |