[PR #5343] docs: update tanstack start integration #31544

Open
opened 2026-04-17 22:26:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5343
Author: @xthezealot
Created: 10/15/2025
Status: 🔄 Open

Base: mainHead: docs-update


📝 Commits (10+)

  • 11dbfdb feat(email-otp): allow returning undefined in generateOTP (#4723)
  • c7f6990 chore(demo): properly pass colors to variables (#4729)
  • 43e0e46 chore: remove @ts-expect-error (#4734)
  • 7efd139 fix: allow disable database transaction (#4733)
  • d35096d fix(stripe): onCustomerCreate should be called even if update user isn't returned (#4716)
  • c6e3370 feat(discord): allow specification of permissions (#4717)
  • 97b0271 fix(organization): membership check for organizations with large member counts (#4724)
  • 4a4349e fix(create-adapter): disable transaction by default (#4750)
  • 71303f6 chore: lint
  • 05a7bd5 test: skip if adapter doesn't support transaction (#4753)

📊 Changes

584 files changed (+25675 additions, -8972 deletions)

View changed files

.github/workflows/branch-rules.yml (+0 -36)
📝 .github/workflows/ci.yml (+2 -2)
📝 .github/workflows/e2e.yml (+6 -5)
.github/workflows/main-protect.yml (+0 -18)
📝 .github/workflows/preview.yml (+2 -2)
📝 .github/workflows/release.yml (+11 -6)
📝 biome.json (+4 -2)
demo/expo-example/.env.example (+7 -0)
demo/expo-example/.gitignore (+20 -0)
demo/expo-example/README.md (+15 -0)
demo/expo-example/app.config.ts (+55 -0)
demo/expo-example/assets/bg-image.jpeg (+0 -0)
demo/expo-example/assets/fonts/SpaceMono-Regular.ttf (+0 -0)
demo/expo-example/assets/icon.png (+0 -0)
demo/expo-example/assets/images/adaptive-icon.png (+0 -0)
demo/expo-example/assets/images/favicon.png (+0 -0)
demo/expo-example/assets/images/logo.png (+0 -0)
demo/expo-example/assets/images/partial-react-logo.png (+0 -0)
demo/expo-example/assets/images/react-logo.png (+0 -0)
demo/expo-example/assets/images/react-logo@2x.png (+0 -0)

...and 80 more files

📄 Description

Tanstack Start has changed its way of defining server routes since the last revision of this doc.

Also, defining /src/server.ts in no more required. Server routes are handled by Start automatically by default.


Summary by cubic

Updated TanStack Start integration docs to use the new server route API and remove the need for /src/server.ts. Examples now use createFileRoute with server.handlers for GET/POST in both installation and integration guides.

  • Migration
    • Define routes with createFileRoute from @tanstack/react-router and use server.handlers for GET/POST.
    • Remove /src/server.ts; Start handles server routes automatically.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/5343 **Author:** [@xthezealot](https://github.com/xthezealot) **Created:** 10/15/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs-update` --- ### 📝 Commits (10+) - [`11dbfdb`](https://github.com/better-auth/better-auth/commit/11dbfdb0636282cf2a6dfeb8999ea7bc06336b76) feat(email-otp): allow returning undefined in `generateOTP` (#4723) - [`c7f6990`](https://github.com/better-auth/better-auth/commit/c7f6990280dce56c872ad49523a51e384ddfcec6) chore(demo): properly pass colors to variables (#4729) - [`43e0e46`](https://github.com/better-auth/better-auth/commit/43e0e4664445c1cd0007b095a526ad4b7ef4e02d) chore: remove @ts-expect-error (#4734) - [`7efd139`](https://github.com/better-auth/better-auth/commit/7efd139b743ad7fd78621c6bd7c45ec6c93398bc) fix: allow disable database transaction (#4733) - [`d35096d`](https://github.com/better-auth/better-auth/commit/d35096dbe0915ae176083afd4265b2659e95214d) fix(stripe): onCustomerCreate should be called even if update user isn't returned (#4716) - [`c6e3370`](https://github.com/better-auth/better-auth/commit/c6e33705135c02e08e0fc661bfef388455f6c2df) feat(discord): allow specification of permissions (#4717) - [`97b0271`](https://github.com/better-auth/better-auth/commit/97b0271fe8b12f4ef240100c1b8932f9b3e9e743) fix(organization): membership check for organizations with large member counts (#4724) - [`4a4349e`](https://github.com/better-auth/better-auth/commit/4a4349e26222d112a9250b5dee422a18c1536d54) fix(create-adapter): disable transaction by default (#4750) - [`71303f6`](https://github.com/better-auth/better-auth/commit/71303f6875d614eb1c8915365295ac61138e215c) chore: lint - [`05a7bd5`](https://github.com/better-auth/better-auth/commit/05a7bd58ced901dcc54694d2f95e1ed941dc4cf7) test: skip if adapter doesn't support transaction (#4753) ### 📊 Changes **584 files changed** (+25675 additions, -8972 deletions) <details> <summary>View changed files</summary> ➖ `.github/workflows/branch-rules.yml` (+0 -36) 📝 `.github/workflows/ci.yml` (+2 -2) 📝 `.github/workflows/e2e.yml` (+6 -5) ➖ `.github/workflows/main-protect.yml` (+0 -18) 📝 `.github/workflows/preview.yml` (+2 -2) 📝 `.github/workflows/release.yml` (+11 -6) 📝 `biome.json` (+4 -2) ➕ `demo/expo-example/.env.example` (+7 -0) ➕ `demo/expo-example/.gitignore` (+20 -0) ➕ `demo/expo-example/README.md` (+15 -0) ➕ `demo/expo-example/app.config.ts` (+55 -0) ➕ `demo/expo-example/assets/bg-image.jpeg` (+0 -0) ➕ `demo/expo-example/assets/fonts/SpaceMono-Regular.ttf` (+0 -0) ➕ `demo/expo-example/assets/icon.png` (+0 -0) ➕ `demo/expo-example/assets/images/adaptive-icon.png` (+0 -0) ➕ `demo/expo-example/assets/images/favicon.png` (+0 -0) ➕ `demo/expo-example/assets/images/logo.png` (+0 -0) ➕ `demo/expo-example/assets/images/partial-react-logo.png` (+0 -0) ➕ `demo/expo-example/assets/images/react-logo.png` (+0 -0) ➕ `demo/expo-example/assets/images/react-logo@2x.png` (+0 -0) _...and 80 more files_ </details> ### 📄 Description Tanstack Start has changed its way of defining server routes since the last revision of this doc. Also, defining `/src/server.ts` in no more required. Server routes are handled by Start automatically by default. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated TanStack Start integration docs to use the new server route API and remove the need for /src/server.ts. Examples now use createFileRoute with server.handlers for GET/POST in both installation and integration guides. - **Migration** - Define routes with createFileRoute from @tanstack/react-router and use server.handlers for GET/POST. - Remove /src/server.ts; Start handles server routes automatically. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 22:26:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#31544