Skip to content

Commit ddfaaaa

Browse files
committed
fix(neon): migrate scaffold plugin to vite-plugin-neon-new
1 parent b8f4e63 commit ddfaaaa

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/create': patch
3+
---
4+
5+
Fix the Neon add-on Vite plugin template to use the `postgres` export from `vite-plugin-neon-new` so newly scaffolded apps start without import errors and avoid deprecated plugin package warnings.

examples/custom-cli/create-rwsdk/add-ons/neon/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Setting up Neon
22

3-
When running the `dev` command, the `@neondatabase/vite-plugin-postgres` will identify there is not a database setup. It will then create and seed a claimable database.
3+
When running the `dev` command, `vite-plugin-neon-new` will identify there is not a database setup. It will then create and seed a claimable database.
44

55
It is the same process as [Neon Launchpad](https://neon.new).
66

examples/custom-cli/create-rwsdk/add-ons/neon/assets/neon-vite-plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { postgresPlugin } from '@neondatabase/vite-plugin-postgres'
1+
import { postgres } from 'vite-plugin-neon-new'
22

3-
export default postgresPlugin({
3+
export default postgres({
44
seed: {
55
type: 'sql-script',
66
path: 'db/init.sql',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
33
"@neondatabase/serverless": "^1.0.0",
4-
"@neondatabase/vite-plugin-postgres": "^0.2.0"
4+
"vite-plugin-neon-new": "^0.8.0"
55
}
66
}

packages/create/src/frameworks/react/add-ons/neon/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Setting up Neon
22

3-
When running the `dev` command, the `@neondatabase/vite-plugin-postgres` will identify there is not a database setup. It will then create and seed a claimable database.
3+
When running the `dev` command, `vite-plugin-neon-new` will identify there is not a database setup. It will then create and seed a claimable database.
44

55
It is the same process as [Neon Launchpad](https://neon.new).
66

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { postgresPlugin } from '@neondatabase/vite-plugin-postgres'
1+
import { postgres } from 'vite-plugin-neon-new'
22

3-
export default postgresPlugin({
3+
export default postgres({
44
seed: {
55
type: 'sql-script',
66
path: 'db/init.sql',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
33
"@neondatabase/serverless": "^1.0.2",
4-
"@neondatabase/vite-plugin-postgres": "^0.7.0"
4+
"vite-plugin-neon-new": "^0.8.0"
55
}
66
}

0 commit comments

Comments
 (0)