mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
add .gitignore in template
This commit is contained in:
5
.changeset/poor-seas-deny.md
Normal file
5
.changeset/poor-seas-deny.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"create-better-t-stack": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix env when turso setup is off
|
||||||
@@ -40,12 +40,12 @@ export async function setupEnvironmentVariables(
|
|||||||
envContent += databaseUrlLine;
|
envContent += databaseUrlLine;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (options.database === "sqlite") {
|
||||||
options.database === "sqlite" &&
|
if (!envContent.includes("TURSO_CONNECTION_URL")) {
|
||||||
options.turso &&
|
if (!options.turso) {
|
||||||
!envContent.includes("TURSO_CONNECTION_URL")
|
envContent += "\nTURSO_CONNECTION_URL=http://127.0.0.1:8080";
|
||||||
) {
|
}
|
||||||
envContent += "\nTURSO_CONNECTION_URL=http://127.0.0.1:8080";
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
apps/cli/template/base/.gitignore
vendored
Normal file
2
apps/cli/template/base/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
/node_modules/
|
||||||
|
.turbo
|
||||||
@@ -6,6 +6,6 @@ export default defineConfig({
|
|||||||
dialect: "turso",
|
dialect: "turso",
|
||||||
dbCredentials: {
|
dbCredentials: {
|
||||||
url: process.env.TURSO_CONNECTION_URL!,
|
url: process.env.TURSO_CONNECTION_URL!,
|
||||||
authToken: process.env.TURSO_AUTH_TOKEN!,
|
authToken: process.env.TURSO_AUTH_TOKEN,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { drizzle } from "drizzle-orm/libsql";
|
|||||||
export const db = drizzle({
|
export const db = drizzle({
|
||||||
connection: {
|
connection: {
|
||||||
url: process.env.TURSO_CONNECTION_URL!,
|
url: process.env.TURSO_CONNECTION_URL!,
|
||||||
authToken: process.env.TURSO_AUTH_TOKEN!,
|
authToken: process.env.TURSO_AUTH_TOKEN,
|
||||||
},
|
},
|
||||||
// logger: true,
|
// logger: true,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user