fix(node): don't crash TanStack Start apps that use Nitro without a start script (#734)
* fix(node): use the Nitro server entry for TanStack Start apps without a start script A TanStack Start app built with the nitro Vite plugin outputs .output/server/index.mjs, not dist/. The srvx fallback pointed at dist/ crashes on startup (ENOENT) and the service 502s. The TanStack scaffolder's default 'Nitro (agnostic)' deploy option produces exactly this combination: nitro dependency and plugin, no start script. Detect the nitro plugin (dependency plus vite config reference) and fall back to 'node .output/server/index.mjs', matching the Nuxt provider's handling of the same output layout. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * test: make tanstack-nitro-nostart a full example with an HTTP check Upgrades the plan-level fixture to a real scaffolder-generated app (npx @tanstack/cli create --deployment nitro) with a test.json, so the integration suite builds it and verifies the served page — the crash this PR fixes now has permanent end-to-end coverage. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
C
Cody De Arkland committed
c0f30767babb40182fea3a319fe385e1d58b5903
Parent: 2a40d4f
Committed by GitHub <noreply@github.com>
on 9/3/2026, 7:10:48 PM