mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 08:58:25 +01:00
Vendor-neutral DATABASE_URL helpers, dump/restore/sync tooling, and one-command Oracle migration after a single console VM step. Publishes the studio-stack thoughts article and hardens build (dynamic layout, resilient sitemap). Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
473 B
TypeScript
18 lines
473 B
TypeScript
import { defineConfig } from "drizzle-kit";
|
|
import { getDatabaseDirectUrl } from "./src/lib/db-url";
|
|
|
|
const url = getDatabaseDirectUrl();
|
|
if (!url) {
|
|
throw new Error("DATABASE_URL is required for drizzle-kit (direct connection, not pool URL)");
|
|
}
|
|
|
|
export default defineConfig({
|
|
schema: "./src/db/schema",
|
|
out: "./drizzle",
|
|
dialect: "postgresql",
|
|
dbCredentials: {
|
|
// Direct URL only — poolers (Neon, PgBouncer) do not support DDL reliably.
|
|
url,
|
|
},
|
|
});
|