Files
ThriveX-Blog/next.config.mjs
刘宇阳 c4c0f9543d refactor(components, config): 更新组件样式和配置以提升一致性和性能
- 在 AGENTS.md 中新增 Next.js 代理规则说明,强调破坏性更改。
- 在 next.config.mjs 中启用 Turbopack 文件系统缓存以加快开发构建速度,并更新图片质量设置。
- 重构多个组件(如 RandomArticle、CateHero、Waterfall 等),优化图片渲染逻辑,提升样式一致性和用户体验。
- 在 Empty 组件中将 img 标签替换为 Image 组件以支持更好的图像处理。
2026-07-07 17:03:23 +08:00

26 lines
636 B
JavaScript
Executable File

/** @type {import('next').NextConfig} */
const nextConfig = {
// 关闭严格模式
reactStrictMode: false,
output: 'standalone',
// 启用 Turbopack 文件系统缓存,加快开发时候的构建速度
experimental: {
turbopackFileSystemCacheForDev: true,
},
// 配置图片来源
images: {
qualities: [75, 80, 90, 100],
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
{
protocol: 'http',
hostname: '**',
}
],
},
};
export default nextConfig;