DB paths working on mac now

This commit is contained in:
Will Chen
2025-04-11 10:21:05 -07:00
parent 43f67e0739
commit 4e577c1da8
4 changed files with 13 additions and 8 deletions

View File

@@ -1,13 +1,14 @@
import type { Config } from "drizzle-kit";
import path from "path";
import { getUserDataPath } from "./src/paths/paths";
const devDbPath = path.resolve("./userData/sqlite.db");
const dbPath = path.join(getUserDataPath(), "sqlite.db");
export default {
schema: "./src/db/schema.ts",
out: "./drizzle",
dialect: "sqlite",
dbCredentials: {
url: devDbPath,
url: dbPath,
},
} satisfies Config;