router icon indicating copy to clipboard operation
router copied to clipboard

Start alpha: Prerender should provide more flexible exclusion or inclusion for groups of paths

Open jasongitmail opened this issue 7 months ago • 0 comments

Which project does this relate to?

Router

Describe the bug

(Not a bug, per se, but shared in Discord and @schiller-manuel requested a Github Issue.)

Your Example Website or App

n/a

Steps to Reproduce the Bug or Issue

Current

Image

The current behavior requires specifying individual specific routes for exclusion or inclusion.

Expected behavior

Desired behavior

The ability to exclude or include a group of paths, possibly using regex.

Use case

As a dev, I will often will want to pre-render all routes by default (e.g. marketing pages, legal pages, blog, etc), but not pre-render any authenticated routes like /dashboard*.

Screenshots or Videos

No response

Platform

  • OS: n/a
  • Browser: n/a
  • Version:
    "@tanstack/react-query": "^5.0.0-alpha.91",
    "@tanstack/react-router": "^1.121.0-alpha.1",
    "@tanstack/react-router-with-query": "^1.121.0-alpha.1",
    "@tanstack/react-start": "^1.121.0-alpha.1",

Additional context

No response

jasongitmail avatar Jun 05 '25 20:06 jasongitmail