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,14 +40,14 @@ export async function setupEnvironmentVariables(
|
||||
envContent += databaseUrlLine;
|
||||
}
|
||||
|
||||
if (
|
||||
options.database === "sqlite" &&
|
||||
options.turso &&
|
||||
!envContent.includes("TURSO_CONNECTION_URL")
|
||||
) {
|
||||
if (options.database === "sqlite") {
|
||||
if (!envContent.includes("TURSO_CONNECTION_URL")) {
|
||||
if (!options.turso) {
|
||||
envContent += "\nTURSO_CONNECTION_URL=http://127.0.0.1:8080";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
await fs.writeFile(envPath, envContent.trim());
|
||||
|
||||
|
||||
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",
|
||||
dbCredentials: {
|
||||
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({
|
||||
connection: {
|
||||
url: process.env.TURSO_CONNECTION_URL!,
|
||||
authToken: process.env.TURSO_AUTH_TOKEN!,
|
||||
authToken: process.env.TURSO_AUTH_TOKEN,
|
||||
},
|
||||
// logger: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user