0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
Commit graph

65 commits

Author SHA1 Message Date
Vitor Hilário
64dee75088
docs(start): add dynamic middleware section with authorization example (#6815)
* docs(start): add dynamic middleware section with authorization example

* docs(start): rename dynamic middleware to middleware factories

* ci: apply automated fixes

* docs(start): fix authMiddleware snippet in authorization example under middleware factories

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-05 19:46:46 +01:00
Manuel Schiller
c099ebf204
fix: don't rely on syntheticNamedExports in import protection (#6758) 2026-02-25 02:08:23 +01:00
Manuel Schiller
95761bc4e3
feat: add excludeFiles to import-protection (#6757)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-25 00:50:40 +01:00
Valerii Petryniak
9a4161acff
docs: Fix frontmatter title field (#6753)
Fix frontmatter title field
2026-02-24 20:28:51 +01:00
Manuel Schiller
851967c8b0
fix: import protection robustness (#6746)
* fix: import protection robustness

* handle onViolation in prod, make it potentially async

* review
2026-02-23 21:43:49 +01:00
Ulrich Stark
1870dc744f
docs: fix grammar and remove duplicate words (#6726) 2026-02-21 21:53:10 +01:00
Manuel Schiller
711f3b858e
feat: import protection (#6688) 2026-02-18 01:16:30 +01:00
Sean Cassiere
e8c5dd0b11
docs(router): restructure docs to use the unified markdown syntax (#6665)
* docs: move overview page

* docs: move all top-level guides to use generic syntax

* make comparison generic

* apply coderabbit suggestions

* docs: move installation guides

* docs: move integrations

* docs: move routing

* docs: move router reference api

* docs: move guides

* docs: fixup links to guides from api reference

* docs: other fixups

* build(llms): LLM generation to account for doc structure change
2026-02-15 21:00:22 +13:00
Birk Skyum
641720f969
perf: revert to Response, and add docs regarding for FastResponse (#6618) 2026-02-09 14:06:44 +01:00
Manuel Schiller
06f3aeca0f
feat: add transformAssetUrls (#6606)
* feat: add transformAssetUrls

* fix docs

* stringify safely

* fix test

* fix
2026-02-07 02:01:46 +01:00
Alexander Zuev
172fa05573
docs: add Cloudflare Workers handlers section to server entry point (#6488)
* docs: add Cloudflare Workers handlers section to server entry point

* docs: append link to official Cloudflare Workers docs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* docs: reduce to link per reviewer feedback

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 23:15:11 +01:00
Shane
f7eaede2d1
docs: Add missing createMiddleware imports in documentation examples (#6500) 2026-02-03 21:12:15 -06:00
Pavan Shinde
6049fd3c9b
docs(start): fix ISR guide link to data loading (#6585) 2026-02-03 21:03:52 -06:00
Philippe Serhal
6ff1190bdc
chore: add source() to Tailwind v4 imports to ensure consistent hashing (#6459)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 01:49:12 +01:00
Tanner Linsley
f5007fa161 docs: updates 2026-01-23 16:17:07 -07:00
Manuel Schiller
aced5f6121 docs: remove outdated 2026-01-20 01:38:44 +01:00
Manuel Schiller
d4bbfa95d5
feat: static replacement of process.env.NODE_ENV during build (#6422) 2026-01-20 01:05:35 +01:00
Manuel Schiller
1d99170163
feat: custom fetch impl via createStart (#6417) 2026-01-19 01:35:38 +01:00
Manuel Schiller
5f6ae58d8b
feat: allow custom fetch impl for server functions (#6327)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-18 20:29:01 +01:00
autofix-ci[bot]
c22e38730f
ci: apply automated fixes 2026-01-17 15:57:39 +00:00
Aldo D'Aquino
786a58b942
docs: fix typo in markdown rendering (#6405) 2026-01-17 16:56:34 +01:00
Tanner Linsley
e6862d1af9 docs: some best practices 2026-01-10 23:19:36 -07:00
Manuel Schiller
b1976d8669 docs: nitro-nightly 2026-01-11 02:50:13 +01:00
Tanner Linsley
88b2911545 fix workos logo 2026-01-06 11:11:49 -07:00
JP Erasmus
2fa4cfadf1
docs: Rename validator to inputValidator in fetch functions (#6245)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-30 02:06:45 +01:00
Tanner Linsley
650028588f
docs: public seo files and seo tracking (#6208)
* docs(seo): add static file options for robots.txt and sitemap.xml

Document that users can place static robots.txt and sitemap.xml files
in the public directory as a simpler alternative to server routes.

* docs(seo): add Nozzle.io recommendation for rank tracking

Add a "Track Your Rankings" section recommending Nozzle.io as a partner
tool for monitoring SEO performance and keyword rankings.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-23 22:30:17 -07:00
Tanner Linsley
43e9572a0e
docs: SEO/LLM optimization
* docs(start): add SEO guide for React and Solid frameworks

Add a comprehensive SEO guide that clarifies what SEO actually means
for developers and explains TanStack Start's technical SEO capabilities:

- Document head management (meta tags, titles, Open Graph)
- Server-side rendering for crawlability
- Static prerendering for performance
- Structured data (JSON-LD) for rich results
- Sitemap and robots.txt generation via server routes
- Best practices for technical SEO

This addresses the common misconception that SEO is just a checkbox,
explaining that it's about using available tools effectively.

* docs(start): add LLMO guide and cross-references with SEO guide

Add a comprehensive LLM Optimization (LLMO) guide for both React and
Solid frameworks, covering:

- What LLMO/AIO/GEO is and how it differs from traditional SEO
- Structured data (JSON-LD) for AI consumption
- Schema.org examples: Article, Product, Organization, FAQ
- Machine-readable API endpoints
- Content best practices for AI extraction
- llms.txt implementation
- Monitoring AI citations

Also adds cross-reference callouts between SEO and LLMO guides to help
users discover related content.

* ci: apply automated fixes

* docs(start): move SEO and LLMO guides to end of guides list

* docs(start): fix server route examples to use createFileRoute

Update SEO and LLMO guides to use createFileRoute with server.handlers
instead of createServerFileRoute for consistency across React and Solid.

* docs(start): document built-in sitemap and fix route file naming

- Add built-in sitemap generation with prerender + crawlLinks
- Show dynamic sitemap as alternative for dynamic content
- Fix escaped period syntax in file names: sitemap[.]xml.ts, robots[.]txt.ts, llms[.]txt.ts
- Add CDN caching recommendation for dynamic sitemaps

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-23 22:17:55 -07:00
Ulrich Stark
948c4fb045
refactor(router-core): deprecate json function in favor of standard Response.json function (#6181) 2025-12-22 19:44:04 +01:00
Tanner Linsley
5ae9461be0
docs: Create markdown import and rendering guide (#6150)
* docs(start): add guide for rendering markdown content

Add comprehensive guide covering two methods for importing and rendering
markdown in TanStack Start applications:
- Static markdown with content-collections for build-time loading
- Dynamic markdown fetched from GitHub or remote sources at runtime

Includes setup for unified/remark/rehype pipeline, code highlighting with
Shiki, and practical examples for blog posts and documentation pages.

* ci: apply automated fixes

* docs(start): add rendering-markdown to navigation config

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-19 11:55:20 -07:00
s-r-x
2c40790b51
docs: fix createMiddleware usage examples in "Observability" guide (#6095) 2025-12-14 23:05:13 +01:00
autofix-ci[bot]
f9be760991
ci: apply automated fixes 2025-12-12 07:01:36 +00:00
Tanner Linsley
d8377c0d69 doc updates 2025-12-12 00:00:22 -07:00
Shinya Fujino
98dc05073d
docs: fix database guide example to match Server Functions API (#5716) 2025-12-08 20:37:51 +01:00
Shinya Fujino
aac462109e
docs: fix typo and clarify generateFunctionId example (#5728) 2025-12-06 19:23:19 +01:00
Yavnik Sharma
3d20d30579
docs: remove gitignore suggestion for generated route tree file (#6025)
docs: remove gitignore suggestion for generated routing files in start docs
2025-12-05 22:05:19 +01:00
Lachlan Collins
15f8e9c4b5
docs: correct local relative links (#6027)
* docs: correct local relative links

* Missing fixes

* Fix lockfile
2025-12-05 22:39:47 +11:00
Birk Skyum
4437739e85
docs: start auth.js example (#5962)
* docs: start auth.js example

* ci: apply automated fixes

* bump start-authjs

* add auth.js to docs

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-25 15:55:05 +01:00
Dominik Dorfmeister
30b45410e0
feat: createServerEntry (#5859) 2025-11-13 22:09:14 +01:00
Pooya Parsa
33c3d405aa
docs(hosting): update nitro to v3 (#5821) 2025-11-12 00:03:55 +01:00
daveycodez
a41e8677b8
feat: Export useHydrated hook with documentation (#5645)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-09 23:45:42 +01:00
Aryan Chaurasia
941e4e7242
(docs:fix) fixed cloudflare workers anchor link (#5723)
Fix cloudflare workers anchor link

Previously the anchor link was set to "#cloudflare-workers" which was not working due to change in title, so I replaced it with "#cloudflare-workers--official-partner".

Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>
2025-11-09 22:03:14 +01:00
Stephen Brown-Bourne
818a5e79bb
docs(start): typo in the server functions guide (#5773) 2025-11-07 20:23:08 +13:00
Philippe Serhal
cff1b2c579
docs: make Netlify hosting docs precise and actionable (#5747)
docs: improve Netlify hosting docs golden path

Revamp the Netlify hosting docs again, to provide a single golden default path that is precise and
works for most use cases, and call out alternatives separately in subsections.

Also add links out to further Netlify docs where appropriate to increase discoverability and
troubleshootability.
2025-11-04 09:16:46 +01:00
autofix-ci[bot]
19b0083bf8
ci: apply automated fixes (attempt 2/3) 2025-11-03 22:08:47 +00:00
autofix-ci[bot]
834c0770ab
ci: apply automated fixes 2025-11-03 22:07:45 +00:00
Aditya Oberai
401883cde1
Add Appwrite Sites to TanStack Start hosting docs (#5746) 2025-11-03 15:06:41 -07:00
Dominik Dorfmeister
e44b5dc1b6
feat(start): export type ServerEntry to allow typing of default exports (#5689)
* feat: export type ServerEntry to allow typing of default exports

when creating a custom server handler

* ref: only export from server-entry
2025-10-29 23:23:35 +01:00
Andy Abi Haidar
05b4defbd0
docs: add guide for New Relic integration (#5631)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-26 22:26:49 +01:00
FatahChan
475707e448
fix: auto discover static routes for prerendering
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-10-26 01:31:14 +02:00
autofix-ci[bot]
c6183adb0c
ci: apply automated fixes 2025-10-24 16:51:45 +00:00