diff --git a/cli/src/cli/index.ts b/cli/src/cli/index.ts index b8cbd12061..a85890e908 100644 --- a/cli/src/cli/index.ts +++ b/cli/src/cli/index.ts @@ -189,6 +189,10 @@ export const runCli = async (): Promise => { process.exit(0); } + cliResults.databaseProvider = cliResults.packages.includes("drizzle") + ? "planetscale" + : "sqlite"; + return cliResults; } @@ -335,7 +339,8 @@ export const runCli = async (): Promise => { appName: project.name ?? cliResults.appName, packages, databaseProvider: - (project.databaseProvider as DatabaseProvider) || "sqlite", + (project.databaseProvider as DatabaseProvider) || + (packages.includes("drizzle") ? "planetscale" : "sqlite"), flags: { ...cliResults.flags, appRouter: project.appRouter ?? cliResults.flags.appRouter,