mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
refactor: update database option to sqlite and replace framer-motion with motion
This commit is contained in:
@@ -44,7 +44,7 @@ const CustomizableStack = () => {
|
||||
const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges);
|
||||
const [activeNodes, setActiveNodes] = useState({
|
||||
backend: "hono",
|
||||
database: "libsql",
|
||||
database: "sqlite",
|
||||
orm: "drizzle",
|
||||
auth: "better-auth",
|
||||
});
|
||||
@@ -140,9 +140,9 @@ const CustomizableStack = () => {
|
||||
const generateCommand = useCallback(() => {
|
||||
const flags: string[] = ["-y"];
|
||||
|
||||
if (activeNodes.database !== "libsql") {
|
||||
if (activeNodes.database !== "sqlite") {
|
||||
flags.splice(flags.indexOf("-y"), 1);
|
||||
flags.push(`--database ${activeNodes.database}`);
|
||||
flags.push(`--${activeNodes.database}`);
|
||||
}
|
||||
|
||||
if (activeNodes.auth !== "better-auth") {
|
||||
|
||||
Reference in New Issue
Block a user