mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
add convex
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
import { cancel, confirm, isCancel } from "@clack/prompts";
|
||||
import { cancel, confirm, isCancel, log } from "@clack/prompts";
|
||||
import pc from "picocolors";
|
||||
import { DEFAULT_CONFIG } from "../constants";
|
||||
import type { ProjectBackend } from "../types";
|
||||
|
||||
export async function getAuthChoice(
|
||||
auth: boolean | undefined,
|
||||
hasDatabase: boolean,
|
||||
backend?: ProjectBackend,
|
||||
): Promise<boolean> {
|
||||
if (backend === "convex") {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!hasDatabase) return false;
|
||||
|
||||
if (auth !== undefined) return auth;
|
||||
|
||||
Reference in New Issue
Block a user