Skip to content

パフォーマンスチューニング

Astroのパフォーマンスチューニング方法を以下に示します。

Astroでは、画像を最適化するためにastro-imagetoolsを使用できます。

Terminal window
npm install astro-imagetools

Astroは、ページごとにコードを分割して、パフォーマンスを向上させます。

astro.config.mjs
export default {
buildOptions: {
site: 'https://example.com',
sitemap: true,
},
};