diff --git a/src/lib/db.ts b/src/lib/db.ts index 0a5bdf0..f0ace34 100644 --- a/src/lib/db.ts +++ b/src/lib/db.ts @@ -12,8 +12,8 @@ export function getDatabaseConfig() { const url = process.env.DATABASE_URL; if (!url) { - // Default to SQLite - return sqlite({ url: "file:./storage/data.db" }); + // Default to SQLite - matches where emdash init creates the database + return sqlite({ url: "file:./data.db" }); } if (url.startsWith("file:")) { @@ -28,5 +28,5 @@ export function getDatabaseConfig() { // Fallback to SQLite console.warn(`Unknown DATABASE_URL protocol, falling back to SQLite`); - return sqlite({ url: "file:./storage/data.db" }); + return sqlite({ url: "file:./data.db" }); }