Defines the fallback strategies for Static Site Generation (SSG) routes when a pre-rendered path is not available. This is particularly relevant for routes with parameterized URLs where some paths might not be pre-rendered at build time.
API
enum PrerenderFallback {}
Server
Fallback to Server-Side Rendering (SSR) if the pre-rendered path is not available. This strategy dynamically generates the page on the server at request time.
Client
Fallback to Client-Side Rendering (CSR) if the pre-rendered path is not available. This strategy allows the page to be rendered on the client side.
None
No fallback; if the path is not pre-rendered, the server will not handle the request. This means the application will not provide any response for paths that are not pre-rendered.
Jump to details