From a1cc73fa12bcd065476fa60f76c83cf4e971ee98 Mon Sep 17 00:00:00 2001 From: harsh mahajan Date: Thu, 13 Aug 2026 11:56:16 +0530 Subject: [PATCH] fix(sites): point TanStack Start static at the nitro public directory Reverses the ssr directory back to .output and corrects the static one instead, on the strength of what the official scaffold builds. create-start-app registers the nitro plugin in its default template, so a project generated today with TanStack Start 1.168.44 writes .output/server/index.mjs and no dist at all. Five of the eight projects built while testing land there. The earlier change assumed a plain tanstackStart() was the common shape; it is what our own starter uses, but not what upstream generates. So the ssr directory was right and the static one was not: nitro serves prerendered output and assets from .output/public, never dist/client. Correcting that direction leaves both adapters describing the nitro layout, and drops the disagreement with the detector, which also returns ./.output for this framework. --- app/config/frameworks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/config/frameworks.php b/app/config/frameworks.php index c58882f017..eac197267c 100644 --- a/app/config/frameworks.php +++ b/app/config/frameworks.php @@ -244,14 +244,14 @@ return [ 'key' => 'ssr', 'buildCommand' => 'npm run build', 'installCommand' => 'npm install', - 'outputDirectory' => './dist', + 'outputDirectory' => './.output', 'startCommand' => 'bash helpers/tanstack-start/server.sh', ], 'static' => [ 'key' => 'static', 'buildCommand' => 'npm run build', 'installCommand' => 'npm install', - 'outputDirectory' => './dist/client', + 'outputDirectory' => './.output/public', 'startCommand' => 'bash helpers/server.sh', ] ]