@@ -1398,21 +1398,23 @@ export const getDisabledReason = (
13981398 if (
13991399 category === "orm" &&
14001400 finalStack . database === "none" &&
1401- optionId !== "none"
1401+ optionId !== "none" &&
1402+ finalStack . backend !== "self"
14021403 ) {
14031404 return "ORM requires a database. Select a database first (SQLite, PostgreSQL, or MongoDB)." ;
14041405 }
14051406
14061407 if (
14071408 category === "database" &&
14081409 optionId !== "none" &&
1409- finalStack . orm === "none"
1410+ finalStack . orm === "none" &&
1411+ finalStack . backend !== "self"
14101412 ) {
14111413 return "Database requires an ORM. Select an ORM first (Drizzle, Prisma, or Mongoose)." ;
14121414 }
14131415
14141416 if ( category === "database" && optionId === "mongodb" ) {
1415- if ( finalStack . orm === "none" ) {
1417+ if ( finalStack . orm === "none" && finalStack . backend !== "self" ) {
14161418 return "MongoDB requires an ORM. Select Prisma or Mongoose ORM first." ;
14171419 }
14181420 if ( finalStack . orm !== "prisma" && finalStack . orm !== "mongoose" ) {
@@ -1427,7 +1429,7 @@ export const getDisabledReason = (
14271429 }
14281430
14291431 if ( category === "database" && optionId === "sqlite" ) {
1430- if ( finalStack . orm === "none" ) {
1432+ if ( finalStack . orm === "none" && finalStack . backend !== "self" ) {
14311433 return "SQLite requires an ORM. Select Drizzle or Prisma ORM first." ;
14321434 }
14331435 if ( finalStack . dbSetup === "mongodb-atlas" ) {
@@ -1481,13 +1483,13 @@ export const getDisabledReason = (
14811483 if ( finalStack . database === "mongodb" ) {
14821484 return "Drizzle ORM does not support MongoDB. Use Prisma or Mongoose ORM instead." ;
14831485 }
1484- if ( finalStack . database === "none" ) {
1486+ if ( finalStack . database === "none" && finalStack . backend !== "self" ) {
14851487 return "Drizzle ORM requires a database. Select a database first (SQLite, PostgreSQL, or MySQL)." ;
14861488 }
14871489 }
14881490
14891491 if ( category === "orm" && optionId === "prisma" ) {
1490- if ( finalStack . database === "none" ) {
1492+ if ( finalStack . database === "none" && finalStack . backend !== "self" ) {
14911493 return "Prisma ORM requires a database. Select a database first (SQLite, PostgreSQL, MySQL, or MongoDB)." ;
14921494 }
14931495 if ( finalStack . dbSetup === "turso" && finalStack . database !== "sqlite" ) {
0 commit comments