-
Notifications
You must be signed in to change notification settings - Fork 9.9k
TanStack Start changelog #26055
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+84
−6
Merged
TanStack Start changelog #26055
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
76 changes: 76 additions & 0 deletions
76
src/content/changelog/workers/2025-10-24-tanstack-start.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| --- | ||
| title: TanStack Start framework support | ||
| description: TanStack Start can now be used with the Cloudflare Vite plugin | ||
| products: | ||
| - workers | ||
| date: 2025-10-24 | ||
| --- | ||
|
|
||
| import { PackageManagers, WranglerConfig } from "~/components"; | ||
|
|
||
| [TanStack Start](https://tanstack.com/start/) can now be used with the [Cloudflare Vite plugin](/workers/vite-plugin/). | ||
jamesopstad marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Create a new project | ||
jamesopstad marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| You can create a new project using the `create-cloudflare` CLI: | ||
jamesopstad marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
jamesopstad marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| <PackageManagers | ||
| type="create" | ||
| pkg="cloudflare@latest" | ||
| args="my-tanstack-start-app --framework=tanstack-start" | ||
| /> | ||
|
|
||
| ## Migrate an existing project | ||
jamesopstad marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Migrating an exiting project is also straightforward. | ||
jamesopstad marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
jamesopstad marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| 1. Install `@cloudflare/vite-plugin` and `wrangler` | ||
|
|
||
| <PackageManagers type="add" pkg="@cloudflare/vite-plugin wrangler" dev /> | ||
|
|
||
| 2. Add the Cloudflare plugin to your Vite config | ||
|
|
||
| ```ts {4, 8} title="vite.config.ts" | ||
| import { defineConfig } from "vite"; | ||
| import { tanstackStart } from "@tanstack/react-start/plugin/vite"; | ||
| import viteReact from "@vitejs/plugin-react"; | ||
| import { cloudflare } from "@cloudflare/vite-plugin"; | ||
|
|
||
| export default defineConfig({ | ||
| plugins: [ | ||
| cloudflare({ viteEnvironment: { name: "ssr" } }), | ||
| tanstackStart(), | ||
| viteReact(), | ||
| ], | ||
| }); | ||
| ``` | ||
|
|
||
| 3. Add your Worker config file | ||
|
|
||
| <WranglerConfig> | ||
|
|
||
| ```toml | ||
| name = "my-tanstack-start-app" | ||
| compatibility_date = "2025-10-11" | ||
| compatibility_flags = ["nodejs_compat"] | ||
| main = "@tanstack/react-start/server-entry" | ||
| ``` | ||
|
|
||
| </WranglerConfig> | ||
|
|
||
| 4. Modify the scripts in your `package.json` | ||
|
|
||
| ```json title="package.json" del={5} ins={6-8} | ||
| { | ||
| "scripts": { | ||
| "dev": "vite dev", | ||
| "build": "vite build && tsc --noEmit", | ||
| "start": "node .output/server/index.mjs", | ||
| "preview": "vite preview", | ||
| "deploy": "npm run build && wrangler deploy", | ||
| "cf-typegen": "wrangler types" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| See the [TanStack Start framework guide](/workers/framework-guides/web-apps/tanstack-start/) for more info. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.