docs: update static to isr (#20964)

Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
Nate Emerson 2023-05-19 10:28:15 -07:00 committed by GitHub
parent b2a769a863
commit d270ab49d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,8 +103,8 @@ The different properties you can use are the following:
- `ssr` - Disables server-side rendering for sections of your app and make them SPA-only with `ssr: false` - `ssr` - Disables server-side rendering for sections of your app and make them SPA-only with `ssr: false`
- `cors` - Automatically adds cors headers with `cors: true` - you can customize the output by overriding with `headers` - `cors` - Automatically adds cors headers with `cors: true` - you can customize the output by overriding with `headers`
- `headers` - Add specific headers to sections of your site - for example, your assets - `headers` - Add specific headers to sections of your site - for example, your assets
- `swr` - Add cache headers to the server response and cache it in the server or reverse proxy for a configurable TTL. The `node-server` preset of Nitro is able to cache the full response. For Netlify and Vercel, the response is also added to the CDN layer. - `swr` - Add cache headers to the server response and cache it in the server or reverse proxy for a configurable TTL. The `node-server` preset of Nitro is able to cache the full response.
- `static` - The behavior is the same as `swr` except that there is no TTL; the response is cached until the next deployment. On Netlify and Vercel, it enables full incremental static generation. - `isr` - The behavior is the same as `swr` except that we are able to add the response to the CDN cache on platforms that support this (currently Netlify or Vercel)
- `prerender` - Prerenders routes at build time and includes them in your build as static assets - `prerender` - Prerenders routes at build time and includes them in your build as static assets
- `experimentalNoScripts` - Disables rendering of Nuxt scripts and JS resource hints for sections of your site. - `experimentalNoScripts` - Disables rendering of Nuxt scripts and JS resource hints for sections of your site.