Open zuka-e opened 2 years ago
ページ表示に必要なデータを事前に取得しHTMLを生成する。
getStaticProps
: ビルド時にデータ取得getStaticPaths
: データに基づきページを生成指定時間経過後にページの再生成を行う。
- Improved Performance: Always serve correctly sized image for each device, using modern image formats.
- Visual Stability: Prevent Cumulative Layout Shift automatically.
- Faster Page Loads: Images are only loaded when they enter the viewport, with optional blur-up placeholders
- Asset Flexibility: On-demand image resizing, even for images stored on remote servers
概要
Create React App で作成したアプリをNext.jsで再構成し、表示速度の向上などを図る。 初めにNext.jsの特徴や利点の理解を進める。