Refactor architecture: improve env loading and command workflow
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { defineConfig } from "drizzle-kit";
|
||||
import { env } from "./src/lib/env";
|
||||
|
||||
export default defineConfig({
|
||||
schema: "./schema.ts",
|
||||
schema: "./src/db/schema.ts",
|
||||
out: "./drizzle",
|
||||
dialect: "postgresql",
|
||||
dbCredentials: {
|
||||
url: process.env.DATABASE_URL || "postgres://kyoko:kyoko@localhost:5432/kyoko",
|
||||
url: env.DATABASE_URL,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user