this repo has no description
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add database url

+3 -3
+1 -1
drizzle.config.ts
··· 5 5 out: "./migrations", 6 6 dialect: "sqlite", 7 7 dbCredentials: { 8 - url: "./local.db", 8 + url: process.env.DATABASE_URL || "./local.db", 9 9 }, 10 10 } satisfies Config;
+2 -2
src/libs/db.ts
··· 2 2 import { Database } from "bun:sqlite"; 3 3 import * as schema from "./schema"; 4 4 5 - // Use environment variable for the database path in production 6 - const dbPath = process.env.DATABASE_PATH || "./local.db"; 5 + // Use environment variable for the database URL 6 + const dbPath = process.env.DATABASE_URL || "./local.db"; 7 7 8 8 // Create a SQLite database instance using Bun's built-in driver with improved concurrency settings 9 9 const sqlite = new Database(dbPath, {