Skip to content

Commit 073651d

Browse files
committed
feat: reduce the number of image generations to reuse CDN cache
1 parent 9701b32 commit 073651d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

astro.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,7 @@ export default defineConfig({
8989
image: {
9090
// 将图像尺寸自适应优化用于所有的 Image、Picture 以及 Markdown 图像
9191
experimentalLayout: 'full-width',
92+
// https://docs.astro.build/zh-cn/reference/configuration-reference/#imageexperimentalbreakpoints
93+
experimentalBreakpoints: [750, 1080, 1920, 2560],
9294
},
9395
});

0 commit comments

Comments
 (0)