Skip to content

Commit d4d264c

Browse files
fix: stabilize scaffolds for Neon, Solid, and path aliases (#355)
fix: harden scaffolds for env safety and startup stability
1 parent 861e175 commit d4d264c

File tree

8 files changed

+7
-20
lines changed

8 files changed

+7
-20
lines changed

packages/create/src/frameworks/react/add-ons/ai/assets/src/lib/ai-devtools.tsx

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/create/src/frameworks/react/add-ons/ai/info.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@
3636
"type": "header-user",
3737
"path": "src/components/demo-AIAssistant.tsx",
3838
"jsName": "TanChatAIAssistant"
39-
},
40-
{
41-
"type": "devtools",
42-
"path": "src/lib/ai-devtools.tsx",
43-
"jsName": "AiDevtools"
4439
}
4540
],
4641
"dependsOn": ["store"],

packages/create/src/frameworks/react/add-ons/ai/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"@tanstack/ai-ollama": "latest",
88
"@tanstack/ai-openai": "latest",
99
"@tanstack/ai-react": "latest",
10-
"@tanstack/react-ai-devtools": "latest",
1110
"highlight.js": "^11.11.1",
1211
"streamdown": "^1.6.5",
1312
"lucide-react": "^0.544.0",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# These will be automatically created by Neon Launchpad (https://neon.new).
22
# You will also need to
3-
VITE_DATABASE_URL=
4-
VITE_DATABASE_URL_POOLER=
3+
DATABASE_URL=
4+
DATABASE_URL_POOLER=

packages/create/src/frameworks/react/add-ons/neon/assets/neon-vite-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export default postgresPlugin({
66
path: 'db/init.sql',
77
},
88
referrer: 'create-tanstack',
9-
dotEnvKey: 'VITE_DATABASE_URL',
9+
dotEnvKey: 'DATABASE_URL',
1010
})

packages/create/src/frameworks/react/add-ons/neon/assets/src/db.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { neon } from '@neondatabase/serverless'
33
let client: ReturnType<typeof neon>
44

55
export async function getClient() {
6-
if (!process.env.VITE_DATABASE_URL) {
6+
if (!process.env.DATABASE_URL) {
77
return undefined
88
}
99
if (!client) {
10-
client = await neon(process.env.VITE_DATABASE_URL!)
10+
client = await neon(process.env.DATABASE_URL!)
1111
}
1212
return client
1313
}

packages/create/src/frameworks/react/project/base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"lucide-react": "^0.561.0",
1818
"react": "^19.2.0",
1919
"react-dom": "^19.2.0",
20-
"vite-tsconfig-paths": "^6.0.2"
20+
"vite-tsconfig-paths": "^5.1.4"
2121
},
2222
"devDependencies": {
2323
"@tanstack/devtools-vite": "^0.3.11",

packages/create/src/frameworks/solid/add-ons/solid-ui/info.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,5 @@
66
"modes": ["file-router", "code-router"],
77
"type": "add-on",
88
"category": "styling",
9-
"color": "#000000",
10-
"command": {
11-
"command": "npx",
12-
"args": ["solidui-cli@latest", "add", "button", "input"]
13-
}
9+
"color": "#000000"
1410
}

0 commit comments

Comments
 (0)