You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Prebuilt Deployment example demonstrates how to implement "On-Demand Incremental Static Regeneration (ISR)" when using the [Build Output API](https://vercel.com/docs/build-output-api/v3).
6
+
7
+
### Demo
8
+
9
+
https://build-output-api-isr.vercel.sh
10
+
11
+
### How it Works
12
+
13
+
When using Prerender Functions, you may want to revalidate the cache for a specific path.
14
+
15
+
To implement this, the `bypassToken` of the [`<name>.prerender-config.json`](./.vercel/output/config/index.prerender-config.json) file should be set to a randomized string that you generate at build-time. This string should not be exposed to users / the client-side, except under authenticated circumstances.
16
+
17
+
To revalidate a path to a Prerender Function, make a `GET` request to that path with a header of `x-prerender-revalidate: <bypassToken>`. A `HEAD` request will not work. When that Prerender Function endpoint is accessed with this header set, the cache will be revalidated, bypassing any caching that Vercel would normally provide.
0 commit comments