mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
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.
This commit is contained in:
1 parent
9421f4a354
commit
a1cc73fa12
1 file changed
+2
-2
@@ -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',
|
||||
]
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user