We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ae5ab9 commit a37bf37Copy full SHA for a37bf37
apps/web/src/app/(home)/_components/stack-builder.tsx
@@ -859,7 +859,20 @@ const generateCommand = (stackState: StackState): string => {
859
if (!checkDefault("api", stackState.api)) {
860
flags.push(`--api ${stackState.api}`);
861
}
862
- if (!checkDefault("database", stackState.database)) {
+
863
+ const requiresExplicitDatabase = [
864
+ "d1",
865
+ "turso",
866
+ "neon",
867
+ "supabase",
868
+ "prisma-postgres",
869
+ "mongodb-atlas",
870
+ ].includes(stackState.dbSetup);
871
872
+ if (
873
+ !checkDefault("database", stackState.database) ||
874
+ requiresExplicitDatabase
875
+ ) {
876
flags.push(`--database ${stackState.database}`);
877
878
if (!checkDefault("orm", stackState.orm)) {
0 commit comments