mirror of
https://github.com/LiuYuYang01/ThriveX-Blog.git
synced 2026-09-03 06:24:24 +08:00
- 在 AGENTS.md 中新增 Next.js 代理规则说明,强调破坏性更改。 - 在 next.config.mjs 中启用 Turbopack 文件系统缓存以加快开发构建速度,并更新图片质量设置。 - 重构多个组件(如 RandomArticle、CateHero、Waterfall 等),优化图片渲染逻辑,提升样式一致性和用户体验。 - 在 Empty 组件中将 img 标签替换为 Image 组件以支持更好的图像处理。
26 lines
636 B
JavaScript
Executable File
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; |