Skip to content

Conversation

@serhalp
Copy link
Contributor

@serhalp serhalp commented Jan 22, 2026

These examples all state in their READMEs that they are configured for automatic deployment to Netlify:

It's deployed automagically with Netlify!

but this regressed when nitro was removed from tanstack core (1.132.0 I believe), and then regressed further several weeks ago in the react/start-basic example specifically when the nitro v3 vite plugin was added (which is not compatible with Netlify's automatic build settings for TanStack Start).

Summary by CodeRabbit

  • Chores
    • Added Netlify deployment configuration to multiple React and Solid example projects (basic, counter, tailwind, and authenticated variants) for streamlined deployment workflows.
    • Integrated Netlify build tooling dependencies and configuration files across all updated examples to enable seamless production deployments.

✏️ Tip: You can customize this high-level summary in your review settings.

These examples state in their READMEs that they are configured for automatic deployment to Netlify,
but this regressed when nitro was removed from tanstack core, and then regressed further in the
`react/start-basic` example when the nitro v3 vite plugin was added (which is not compatible with
Netlify's automatic build settings for TanStack Start).
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 22, 2026

📝 Walkthrough

Walkthrough

This PR adds Netlify deployment configuration across multiple React and Solid example projects. It introduces netlify.toml files specifying build commands and publish directories, adds the @netlify/vite-plugin-tanstack-start dependency to package.json files, and registers the plugin in Vite configurations. In some examples, it replaces the nitro plugin with the Netlify plugin.

Changes

Cohort / File(s) Summary
React Start-Basic-RSC
examples/react/start-basic-rsc/netlify.toml, examples/react/start-basic-rsc/package.json, examples/react/start-basic-rsc/vite.config.ts
Added netlify.toml with build configuration, added @netlify/vite-plugin-tanstack-start dependency, imported and registered netlify plugin in Vite config
React Start-Basic (Nitro → Netlify)
examples/react/start-basic/netlify.toml, examples/react/start-basic/package.json, examples/react/start-basic/vite.config.ts
Added netlify.toml, replaced nitro devDependency with @netlify/vite-plugin-tanstack-start, swapped nitro() plugin for netlify() in Vite config
React Start-Clerk-Basic
examples/react/start-clerk-basic/netlify.toml, examples/react/start-clerk-basic/package.json, examples/react/start-clerk-basic/vite.config.ts
Added netlify.toml with build configuration, added @netlify/vite-plugin-tanstack-start dependency, imported and registered netlify plugin in Vite config
React Start-Counter
examples/react/start-counter/netlify.toml, examples/react/start-counter/package.json, examples/react/start-counter/vite.config.ts
Added netlify.toml with build configuration, added @netlify/vite-plugin-tanstack-start dependency, imported and registered netlify plugin in Vite config
React Start-Tailwind-V4
examples/react/start-tailwind-v4/netlify.toml, examples/react/start-tailwind-v4/package.json, examples/react/start-tailwind-v4/vite.config.ts
Added netlify.toml with build configuration, added @netlify/vite-plugin-tanstack-start dependency, imported and registered netlify plugin in Vite config
Solid Start-Basic-Auth
examples/solid/start-basic-auth/netlify.toml, examples/solid/start-basic-auth/package.json, examples/solid/start-basic-auth/vite.config.ts
Added netlify.toml with build configuration, added @netlify/vite-plugin-tanstack-start dependency, imported and registered netlify plugin in Vite config
Solid Start-Basic-Netlify
examples/solid/start-basic-netlify/package.json
Bumped @netlify/vite-plugin-tanstack-start from ^1.1.4 to ^1.2.7
Solid Start-Basic-Solid-Query
examples/solid/start-basic-solid-query/netlify.toml, examples/solid/start-basic-solid-query/package.json, examples/solid/start-basic-solid-query/vite.config.ts
Added netlify.toml with build configuration, added @netlify/vite-plugin-tanstack-start dependency, imported and registered netlify plugin in Vite config
Solid Start-Basic (Nitro → Netlify)
examples/solid/start-basic/netlify.toml, examples/solid/start-basic/package.json, examples/solid/start-basic/vite.config.ts
Added netlify.toml, replaced nitro devDependency with @netlify/vite-plugin-tanstack-start, swapped nitro() plugin for netlify() in Vite config
Solid Start-Tailwind-V4
examples/solid/start-tailwind-v4/netlify.toml, examples/solid/start-tailwind-v4/package.json, examples/solid/start-tailwind-v4/vite.config.ts
Added netlify.toml with build configuration, added @netlify/vite-plugin-tanstack-start dependency, imported and registered netlify plugin in Vite config

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Suggested reviewers

  • birkskyum
  • schiller-manuel

Poem

🐰 Hopping through examples with cheer,
Netlify configs now appear,
Build commands set, dist/client in sight,
Plugins registered, deployments so tight!
TanStack Start hops with care,
Toml files everywhere! 🎉

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly addresses the main purpose of the PR: fixing Netlify configuration across multiple example projects to restore automatic deployment capabilities.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link

nx-cloud bot commented Jan 22, 2026

View your CI Pipeline Execution ↗ for commit 36cc4af

Command Status Duration Result
nx affected --targets=test:eslint,test:unit,tes... ✅ Succeeded 15m 7s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 1m 54s View ↗

☁️ Nx Cloud last updated this comment at 2026-01-23 00:07:12 UTC

@serhalp serhalp marked this pull request as ready for review January 22, 2026 23:54
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 22, 2026

More templates

@tanstack/arktype-adapter

npm i https://pkg.pr.new/TanStack/router/@tanstack/arktype-adapter@6461

@tanstack/eslint-plugin-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/eslint-plugin-router@6461

@tanstack/history

npm i https://pkg.pr.new/TanStack/router/@tanstack/history@6461

@tanstack/nitro-v2-vite-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/nitro-v2-vite-plugin@6461

@tanstack/react-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router@6461

@tanstack/react-router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router-devtools@6461

@tanstack/react-router-ssr-query

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-router-ssr-query@6461

@tanstack/react-start

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start@6461

@tanstack/react-start-client

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start-client@6461

@tanstack/react-start-server

npm i https://pkg.pr.new/TanStack/router/@tanstack/react-start-server@6461

@tanstack/router-cli

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-cli@6461

@tanstack/router-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-core@6461

@tanstack/router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-devtools@6461

@tanstack/router-devtools-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-devtools-core@6461

@tanstack/router-generator

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-generator@6461

@tanstack/router-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-plugin@6461

@tanstack/router-ssr-query-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-ssr-query-core@6461

@tanstack/router-utils

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-utils@6461

@tanstack/router-vite-plugin

npm i https://pkg.pr.new/TanStack/router/@tanstack/router-vite-plugin@6461

@tanstack/solid-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router@6461

@tanstack/solid-router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router-devtools@6461

@tanstack/solid-router-ssr-query

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-router-ssr-query@6461

@tanstack/solid-start

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start@6461

@tanstack/solid-start-client

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start-client@6461

@tanstack/solid-start-server

npm i https://pkg.pr.new/TanStack/router/@tanstack/solid-start-server@6461

@tanstack/start-client-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-client-core@6461

@tanstack/start-fn-stubs

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-fn-stubs@6461

@tanstack/start-plugin-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-plugin-core@6461

@tanstack/start-server-core

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-server-core@6461

@tanstack/start-static-server-functions

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-static-server-functions@6461

@tanstack/start-storage-context

npm i https://pkg.pr.new/TanStack/router/@tanstack/start-storage-context@6461

@tanstack/valibot-adapter

npm i https://pkg.pr.new/TanStack/router/@tanstack/valibot-adapter@6461

@tanstack/virtual-file-routes

npm i https://pkg.pr.new/TanStack/router/@tanstack/virtual-file-routes@6461

@tanstack/vue-router

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-router@6461

@tanstack/vue-router-devtools

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-router-devtools@6461

@tanstack/vue-router-ssr-query

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-router-ssr-query@6461

@tanstack/vue-start

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-start@6461

@tanstack/vue-start-client

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-start-client@6461

@tanstack/vue-start-server

npm i https://pkg.pr.new/TanStack/router/@tanstack/vue-start-server@6461

@tanstack/zod-adapter

npm i https://pkg.pr.new/TanStack/router/@tanstack/zod-adapter@6461

commit: 36cc4af

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 7

🤖 Fix all issues with AI agents
In `@examples/react/start-basic-rsc/vite.config.ts`:
- Line 6: The plugins array currently places netlify() after viteReact(),
causing incorrect SSR/build behavior; update the plugins ordering so netlify()
appears before viteReact() and after tanstackStart() — i.e., ensure the array
lists tanstackStart(), netlify(), viteReact() (reference the netlify(),
tanstackStart(), and viteReact() plugin calls to locate and reorder them).

In `@examples/react/start-basic/package.json`:
- Line 22: Update the dependency version for
"@netlify/vite-plugin-tanstack-start" in package.json: replace the non-existent
version string "^1.2.7" with the latest published release "^1.0.2" to match
available npm versions; after updating, regenerate your lockfile by running npm
install or yarn install so the lockfile reflects the change and verify the
example builds with the TanStack Start and Vite setup.

In `@examples/react/start-clerk-basic/package.json`:
- Line 25: The package.json dependency entry for
"@netlify/vite-plugin-tanstack-start" specifies a non-existent version "^1.2.7";
update the version specifier for the dependency
"@netlify/vite-plugin-tanstack-start" to a valid published version (for example
"^1.0.2") or remove the explicit version to allow using the latest per Netlify
guidance, then run npm/yarn install to verify resolution.

In `@examples/react/start-counter/vite.config.ts`:
- Around line 4-10: The plugin order in the Vite config is incorrect; move the
Netlify plugin so it sits between tanstackStart() and viteReact(): update the
plugins array from [tanstackStart(), viteReact(), netlify()] to
[tanstackStart(), netlify(), viteReact()] so the call sites tanstackStart(),
netlify(), and viteReact() appear in that sequence to match Netlify docs.

In `@examples/solid/start-basic-auth/package.json`:
- Line 25: Update the dependency version for
"@netlify/vite-plugin-tanstack-start" in package.json because "^1.2.7" is not
published; change the version constraint to a real release (for example "^1.0.2"
or the latest 1.0.x) and verify by running npm
info/@netlify/vite-plugin-tanstack-start or npm view to confirm the published
version before committing.

In `@examples/solid/start-basic/package.json`:
- Line 21: Replace the non-existent dependency version for
"@netlify/vite-plugin-tanstack-start" in package.json: change the version string
from "^1.2.7" to an existing published version such as "^1.0.2" (or "1.0.2"),
then update your lockfile by running your package manager (npm install / yarn
install / pnpm install) to ensure the correct package is installed.

In `@examples/solid/start-tailwind-v4/package.json`:
- Line 21: The dependency entry for "@netlify/vite-plugin-tanstack-start"
references a non-existent version (1.2.7); update the package.json dependency
for "@netlify/vite-plugin-tanstack-start" to a published version (e.g., 1.0.1)
that is compatible with Vite 7 and TanStack Start 1.154, then run your package
manager (npm/yarn/pnpm) to reinstall and verify the lockfile update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant