Skip to content

Commit

Permalink
use planetscale as default for drizzle
Browse files Browse the repository at this point in the history
  • Loading branch information
ronanru committed Oct 24, 2023
1 parent c4565f9 commit c46048d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cli/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ export const runCli = async (): Promise<CliResults> => {
process.exit(0);
}

cliResults.databaseProvider = cliResults.packages.includes("drizzle")
? "planetscale"
: "sqlite";

return cliResults;
}

Expand Down Expand Up @@ -335,7 +339,8 @@ export const runCli = async (): Promise<CliResults> => {
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,
Expand Down

0 comments on commit c46048d

Please sign in to comment.