Skip to content
Source
Sign inSign up
TanStack/router

fix: not all pages are pre-rendered #5475

MergedFatahChan(GitHub profile, opens in a new tab)merged 38 commits intomain fromrefs/pull/5475/headmerged by schiller-manuel(GitHub profile, opens in a new tab)

Showing 14 changed files with 65 additions and 5 deletions (loading 11).

x
0 of 14 viewed, 14 left
30 additions and 2 deletionsdocs/start/framework/react/guide/static-prerendering.mdModified
View file
@@ -25,6 +25,9 @@
// Enable if you need pages to be at `/page/index.html` instead of `/page.html`
autoSubfolderIndex: true,
​
+ // If disabled, only the root path or the paths defined in the pages config will be prerendered
+ autoStaticPathsDiscovery: true,
+​
// How many prerender jobs to run at once
concurrency: 14,
​
@@ -40,13 +43,20 @@
// Delay between retries in milliseconds
retryDelay: 1000,
​
+ // Maximum number of redirects to follow during prerendering
+ maxRedirects: 5,
+​
+ // Fail if an error occurs during prerendering
+ failOnError: true,
+​
Resolvedby FatahChan(GitHub profile, opens in a new tab)