Full node_modules image (not output: standalone — its file-tracing drops argon2's JS loader and segfaults in prod). drizzle.config.ts now honors DATA_DIR like the sibling projects, so db:migrate targets the mounted volume instead of an image-local path.
14 lines
341 B
TypeScript
14 lines
341 B
TypeScript
import { defineConfig } from "drizzle-kit";
|
|
import path from "node:path";
|
|
|
|
const dataDir = process.env.DATA_DIR ?? path.join(process.cwd(), "data");
|
|
|
|
export default defineConfig({
|
|
out: "./src/lib/db/migrations",
|
|
schema: "./src/lib/db/schema.ts",
|
|
dialect: "sqlite",
|
|
dbCredentials: {
|
|
url: path.join(dataDir, "db.sqlite"),
|
|
},
|
|
});
|