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

99 commits

Author SHA1 Message Date
Manuel Schiller
30ad7f6db4
feat: allow composability of server function factories and middlewares (#5044) 2025-08-31 01:23:32 +02:00
Manuel Schiller
02276b1e8c
refactor: start compiler (#5014) 2025-08-23 20:32:03 +02:00
Manuel Schiller
7503cd15a0
fix: change plugin config (#5012) 2025-08-22 22:31:12 +02:00
Manuel Schiller
bcfe15e676 Merge remote-tracking branch 'origin/main' into HEAD 2025-08-16 19:14:18 +02:00
Abdullah Al-taheri
fe43f1bf53
docs: Update static-prerendering.md (#4903)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-11 01:53:44 +02:00
Adam Rackis
3023706938
Update getting-started.md (#4909)
Add TanStack Start CLI option
2025-08-10 09:14:53 -07:00
Manuel Schiller
29b8b0c46f docs 2025-08-09 14:38:56 +02:00
Manuel Schiller
6195307326 cleanup 2025-08-09 00:12:51 +02:00
Manuel Schiller
63879f7de3 move static server functions into middleware in separate package 2025-08-09 00:12:38 +02:00
Manuel Schiller
db0236cad4 dont autoconfigure react/solid vite plugin anymore 2025-08-09 00:11:38 +02:00
Adam Bouqdib
75615f3994
docs(start): fix cloudflare-workers deployment using wrangler.toml (#4779) 2025-08-02 13:07:49 +12:00
Sean Cassiere
7f290adb41
docs: add frontmatter to the "how-to" guides (#4835) 2025-07-30 20:04:05 +12:00
autofix-ci[bot]
87a730ba5a
ci: apply automated fixes 2025-07-29 17:57:14 +00:00
Tanner Linsley
b402bbc8ca
docs: isomorphic and environment aware code
Add foundational how-to guide on writing isomorphic, client-only, and
server-only code to clarify execution boundaries in TanStack Start.

---
<a
href="https://cursor.com/background-agent?bcId=bc-164a09a2-5b83-4a4a-b6ed-22e447950438">
  <picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/open-in-cursor-dark.svg">
<source media="(prefers-color-scheme: light)"
srcset="https://cursor.com/open-in-cursor-light.svg">
<img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg">
  </picture>
</a>
<a
href="https://cursor.com/agents?id=bc-164a09a2-5b83-4a4a-b6ed-22e447950438">
  <picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/open-in-web-dark.svg">
<source media="(prefers-color-scheme: light)"
srcset="https://cursor.com/open-in-web-light.svg">
    <img alt="Open in Web" src="https://cursor.com/open-in-web.svg">
  </picture>
</a>

<sub>[Learn
more](https://docs.cursor.com/background-agent/web-and-mobile) about
Cursor Agents</sub>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-29 11:55:46 -06:00
autofix-ci[bot]
bff3ad651d
ci: apply automated fixes 2025-07-29 00:50:17 +00:00
Tanner Linsley
c88c2aebae
docs: Outline top how-to guides for TanStack Start (#4816)
Create a detailed plan for TanStack Start how-to guides, prioritizing
based on user issues and dependencies.

This plan outlines over 20 new how-to guides, organized by logical
dependencies and explicitly addressing common pain points found in
GitHub issues, particularly around server functions and deployment.

---

[Open in
Web](https://cursor.com/agents?id=bc-58c1c95a-be49-4ad5-8bd7-80ad78fbc4e7)
• [Open in
Cursor](https://cursor.com/background-agent?bcId=bc-58c1c95a-be49-4ad5-8bd7-80ad78fbc4e7)
• [Open Docs](https://docs.cursor.com/background-agent/web-and-mobile)

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-28 18:49:29 -06:00
autofix-ci[bot]
de11338d8c
ci: apply automated fixes 2025-07-27 17:15:24 +00:00
notKamui
a08b600b66
docs: Runtime env docs (#4797)
With discussions with @schiller-manuel and the amount of time this issue
has been brought up on Discord, I feel adding precisions and more
explicit examples on how to deal with runtime env variables on the
client could help.

---------

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2025-07-27 11:14:40 -06:00
Lachlan Collins
a89408affd
chore: sync TanStack repo changes (#4784)
## 🎯 Changes

- Update Prettier and use experimental CLI
- Update Nx to v21
- Fix bug in test exposed by new prettier version
- Sync issues template

## ✅ Checklist

- [x] I have followed the steps listed in the [Contributing
guide](https://github.com/TanStack/config/blob/main/CONTRIBUTING.md).
- [x] I have tested and linted this code locally.
2025-07-26 21:55:38 +10:00
Tanner Linsley
4f802cf1c0
docs: env vars (#4777)
Add a detailed plan for a new 'How to Use Environment Variables' guide
because it addresses a critical and frequently asked topic that is
currently under-documented.

---

[Open in
Web](https://cursor.com/agents?id=bc-7c882ddb-7215-41c7-9ef1-32f42f212449)
• [Open in
Cursor](https://cursor.com/background-agent?bcId=bc-7c882ddb-7215-41c7-9ef1-32f42f212449)

Learn more about [Background
Agents](https://docs.cursor.com/background-agent/web-and-mobile)

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-25 16:50:39 -06:00
Karthik Appiah
b38c42e753
docs(start): add missing dev dep to build-from-scratch guide (#4758) 2025-07-25 09:07:35 +12:00
Kamlesh Paul
be1b9e39b3
docs: typo in Server-Routes => Escaped Matching (#4741) 2025-07-22 17:12:30 +02:00
Usman S. (Max Programming)
132bd0c6d3
docs(start): build-from-scratch guide to use customVite(React/Solid)Plugin (#4678)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-07-17 23:00:02 +12:00
Ahmed Abdelbaset
1746c08918
docs(start): remove todo from Server Routes guide (#4650) 2025-07-14 22:43:26 +12:00
James Cleveland
3e4b024a6b
docs(start): list static prerendering options (#4635) 2025-07-13 11:56:19 +12:00
James Cleveland
fe01311cbb
docs: remove somewhat incorrect statement from docs (#4636)
There's absolutely no reason not to use TanStack Start for purely static
sites - it works great, and it means that if you then want to transition
a codebase to being dynamically SSR, it requires zero work!
2025-07-12 23:57:47 +02:00
James Cleveland
5f42bc4cb6
fix: allow prerender if no pages specified (#4632)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-12 21:28:01 +02:00
Manuel Schiller
4b4562aea6
fix: don't run router.load() when hydrating only SSRed matches (#4630)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-12 01:18:27 +02:00
Jordan Winslow
5fd079e482
docs: replace reference to app folder with the correct src folder (#4598) 2025-07-08 19:37:15 +02:00
Teemu Sirkiä
e0dfe30755
docs(start): ssr inheritance (#4583) 2025-07-06 21:29:26 +02:00
Youssef Benlemlih
fab63d9ee5
docs: ssr rendered on server (#4582) 2025-07-06 19:16:05 +02:00
Elliot Nash
ae2e919ebf
docs(start): update hosting docs to reflect vite migration (#4575) 2025-07-06 15:04:40 +02:00
Manuel Schiller
d728d69900
feat: ssr setting per route (#4565)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-05 14:35:14 +02:00
Masum Gökyüz
d0f234d05a
docs: update import for server function in React basics guide (#4561) 2025-07-02 22:05:36 +02:00
Usman S. (Max Programming)
3e1d2f40e6
docs(guide): integrate tailwind (#4549)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-01 22:47:42 +02:00
Ahmed Abdelbaset
a211a4dc25
docs: fix typos and wrong paths in server-routes.md (#4461) 2025-06-22 09:03:48 +02:00
Usman S. (Max Programming)
c48b5ba457
docs: Added missing triple-slash directive for css imports (#4498) 2025-06-21 20:26:32 +02:00
Manuel Schiller
6248b69e5e
docs: remove alpha notice from nextjs migration guid 2025-06-21 11:29:44 +02:00
Richard Honor
f42b8a066b
docs: use correct syntax for createFileRoute (#4470)
Some of the documentation was missing the path parameter for
`createFileRoute`, which is required by default.

This PR adds those paths back, and tries to make it as relevant to the
surrounding context as possible.

Fixes #4372
2025-06-20 04:50:47 +02:00
Oroneki
4230b507b3
docs: Update server-routes.md (#4477)
Updating server route docs example with correct endpoint in code
example. Excluding the `"/api"` prefix.
2025-06-20 04:48:48 +02:00
Davide Lombardi
c941860cf7
docs: added missing middleware method chaining in context example (#4447)
Co-authored-by: Davide Lombardi <berz@Davides-MacBook-Pro-2.local>
2025-06-17 20:11:12 +02:00
Himanshu Kumar Dutt
ee647d8f99
fix broken link in migrate-from-next-js.md (#4415) 2025-06-13 19:46:54 +02:00
Felix
68be739580
docs(start): use correct import source for createFileRoute in build-from-scratch guide (#4399)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-06-13 08:31:15 +12:00
Himanshu Kumar Dutt
de22e58a87
docs(start): include /api as a Server Routes example (#4375) 2025-06-12 10:38:26 +12:00
Neco
f4e86649c2
docs(start): spa-mode guide to use correct export (#4374) 2025-06-12 10:37:56 +12:00
autofix-ci[bot]
5893f41aef
ci: apply automated fixes 2025-06-11 17:42:16 +00:00
Harsh Pareek
714c8cf008
docs: Correct createFileRoute import and invocation in Build a Project from Scratch (#4385) 2025-06-11 19:41:11 +02:00
Manuel Schiller
8b5accb27c
feat: Merge alpha to main (#4365)
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: Iha Shin (신의하) <me@xiniha.dev>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: MoeedDar <moeed.dar@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Saša Šijak <me@ssijak.com>
Co-authored-by: Christopher Horobin <chrishorobin@hotmail.com>
Co-authored-by: Ryan Gillie <gillie.ryan@hotmail.com>
Co-authored-by: Jaga Santagostino <jagasantagostino@gmail.com>
Co-authored-by: Birk Skyum <birk.skyum@pm.me>
Co-authored-by: Yeoh Joer <yeoh.joer@outlook.com>
Co-authored-by: Dane Grant <danecando@gmail.com>
Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>
Co-authored-by: Luis Merino <mail@luismerino.name>
Co-authored-by: ThaumRystra <9525416+ThaumRystra@users.noreply.github.com>
Co-authored-by: Adam Hunter <arhunter@gmail.com>
Co-authored-by: Leonardo Montini <lion.48m@gmail.com>
Co-authored-by: Joel Tannas <jtannas@gmail.com>
Co-authored-by: scarf <greenscarf005@gmail.com>
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
Co-authored-by: Iñaki Larramendi <30437204+ilarramendi@users.noreply.github.com>
Co-authored-by: Hiển Đào Vinh <neo.go.vn@gmail.com>
Co-authored-by: Lleyton W Morris <42259073+ViewableGravy@users.noreply.github.com>
Co-authored-by: Lleyton Morris <lmorris@nexigen.digital>
Co-authored-by: Matthew Struble <matt@vevox.io>
Co-authored-by: Matt Anderson <matt@mattdev.ca>
Co-authored-by: Chung <chungwong@users.noreply.github.com>
Co-authored-by: Maxx Coffee <josh@joshcoffee.dev>
Co-authored-by: Joshua Coffee <joshcoffee@gannett.com>
Co-authored-by: Jack Herrington <jherr@pobox.com>
Co-authored-by: Neeraj Dalal <admin@nrjdalal.com>
Co-authored-by: Thomas Marnet <thomas.marnet@gmail.com>
Co-authored-by: Vianney Carel <vcarel@users.noreply.github.com>
Co-authored-by: Vianney Carel <vianney.carel@logfuse.fr>
Co-authored-by: Diego Rincón <97266392+diegoarff@users.noreply.github.com>
Co-authored-by: Erfan Hosseini <43422324+Erfanhosseini98@users.noreply.github.com>
Co-authored-by: IderAghbal <3328396+IderAghbal@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andrew Jefferson <8148776+eastlondoner@users.noreply.github.com>
2025-06-10 23:19:32 +02:00
Neeraj Dalal
18e24a74a5
docs(start): add project structure to next.js migration guide (#4280) 2025-05-30 23:00:45 +12:00
Neeraj Dalal
dc1d7b9137
docs(start): fix typos in next migration guide (#4276) 2025-05-30 16:12:21 +12:00