fix(a11y): 无障碍与 lint 修复(对比度/alt 属性/触控目标收窄)+ Geist 本地字体系统
This commit is contained in:
+6
-1
@@ -2,10 +2,15 @@ const cdnDomain = process.env.CDN_DOMAIN || '';
|
||||
|
||||
const nextConfig = {
|
||||
output: 'standalone',
|
||||
distDir: 'dist',
|
||||
// 默认 dist/;可用 NEXT_DIST_DIR 覆盖(CI 分环境输出,或本地需要避开既有构建产物)
|
||||
distDir: process.env.NEXT_DIST_DIR || 'dist',
|
||||
assetPrefix: cdnDomain || undefined,
|
||||
images: {
|
||||
// 有意关闭 Next 图片优化:产物经 Nginx 静态托管 + CDN 分发(见 docs/CDN_CONFIGURATION.md、
|
||||
// CLAUDE.md「Images are unoptimized (static export limitation)」)。
|
||||
// 不要仅因「性能」理由改为 false —— 在无 Node 运行时接管 /_next/image 的部署模式下会导致图片 404。
|
||||
unoptimized: true,
|
||||
// 注意:unoptimized 为 true 时下面这行不生效,仅在改回 false 后才会参与构建产物生成。
|
||||
formats: ['image/avif', 'image/webp'],
|
||||
},
|
||||
compress: true,
|
||||
|
||||
Reference in New Issue
Block a user