router icon indicating copy to clipboard operation
router copied to clipboard

[docs] Outdated ISR guide?

Open cherniavskii opened this issue 5 months ago • 2 comments

Which project does this relate to?

Start

Describe the bug

I tried to implement ISG following the ISG guide, and it refers to prerender.routes option in tanstackStart() all the time:

import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    tanstackStart({
      prerender: {
        routes: ['/blog', '/blog/posts/*'],
        crawlLinks: true,
      },
    }),
  ],
})

This seems wrong, because prerender schema doesn't have a routes field:

https://github.com/TanStack/router/blob/689d88e04c48ec76a18453ab8b82d8d58f2668b6/packages/start-plugin-core/src/schema.ts#L270-L284

Should the ISG guide document the prerender.filter option instead?

Complete minimal reproducer

https://tanstack.com/start/latest/docs/framework/react/guide/isr

Steps to Reproduce the Bug

Check out the ISG Guide

Expected behavior

Correct configuration is documented

Screenshots or Videos

No response

Platform

N/A

Additional context

No response

cherniavskii avatar Jun 07 '26 18:06 cherniavskii

Bean Labs took a public-source pass on this issue.

The narrowest useful next step looks like: verify current ISR docs against implementation

Public evidence checked:

  • docs/
  • README.md

A good acceptance check would be a docs diff that changes only the affected wording/link and renders without stale references.

No PR opened from this pass.

beanscg avatar Jun 09 '26 18:06 beanscg

Opened #7624 — replaces the non-existent prerender.routes with the supported pages array + prerender.crawlLinks (matching the Static Prerendering guide and start-plugin-core schema), across all four code samples in the ISR guide.

rumitvn avatar Jun 13 '26 05:06 rumitvn