add automated neon postgres database setup

This commit is contained in:
Aman Varshney
2025-04-11 09:01:53 +05:30
parent bca3ec81f5
commit 0868672050
11 changed files with 260 additions and 17 deletions

View File

@@ -25,13 +25,22 @@ export async function getDBSetupChoice(
},
{ value: "none" as const, label: "None", hint: "Manual setup" },
];
} else if (databaseType === "postgres" && orm === "prisma") {
} else if (databaseType === "postgres") {
options = [
{
value: "prisma-postgres" as const,
label: "Prisma Postgres",
hint: "Instant Postgres for Global Applications",
value: "neon" as const,
label: "Neon Postgres",
hint: "Serverless Postgres with branching capability",
},
...(orm === "prisma"
? [
{
value: "prisma-postgres" as const,
label: "Prisma Postgres",
hint: "Instant Postgres for Global Applications",
},
]
: []),
{ value: "none" as const, label: "None", hint: "Manual setup" },
];
} else if (databaseType === "mongodb") {