Skip to content

Commit deca085

Browse files
committed
update tanstack example
1 parent 45a05d2 commit deca085

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

examples/tanstack-start/app.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import tsConfigPaths from "vite-tsconfig-paths";
44
export default defineConfig({
55
vite: {
66
plugins: [
7-
postgresPlugin(),
7+
postgresPlugin({
8+
schemaPath: "./schema.json",
9+
}),
810
tsConfigPaths({
911
projects: ["./tsconfig.json"],
1012
}),

examples/tanstack-start/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@types/react": "^19.0.10",
2626
"@types/react-dom": "^19.0.4",
2727
"@vitejs/plugin-react": "^4.3.4",
28+
"neondb": "workspace:*",
2829
"typescript": "^5.8.2",
2930
"vite-tsconfig-paths": "^5.1.4"
3031
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"$schema": "node_modules/neondb/dist/schema.json",
3+
"schema": {
4+
"tables": [
5+
{
6+
"name": "users",
7+
"columns": [
8+
{
9+
"name": "id",
10+
"type": "text",
11+
"nonNullable": true
12+
},
13+
{
14+
"name": "name",
15+
"type": "text",
16+
"nonNullable": false
17+
}
18+
]
19+
}
20+
]
21+
}
22+
}

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)