Skip to content

shimabukuromeg/next-isr-sample

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

このリポジトリについて

  • ISRの挙動の確認用のリポジトリ

確認したこと

  • revalidateに指定した値の間はキャッシュを保持する
  • revalidateに指定した値を過ぎた後にリクエストしたらページが再生成される(最初にアクセスしたタイミングは古いぺーじだけど次から新しいページが返されるようになる)
  • unstable_revalidate を実行したら、新しいページが再生成される。unstable_revalidateを実行以降にリクエストしたら再生成したページが返される

Getting Started

$ yarn install
$ yarn build
$ yarn start

Open http://localhost:3000 with your browser to see the result.

参考

https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta

https://vercel.com/docs/concepts/next.js/incremental-static-regeneration#on-demand-revalidation-(beta)

Releases

No releases published

Packages

No packages published