mirror of
https://github.com/soconnor0919/beenvoice.git
synced 2026-02-05 00:06:36 -05:00
feat: Implement dynamic accent color selection and refactor appearance settings
This commit is contained in:
@@ -1,12 +1,22 @@
|
||||
import type { Config } from "drizzle-kit";
|
||||
import * as dotenv from "dotenv";
|
||||
// Load .env.local if it exists
|
||||
dotenv.config({ path: ".env.local" });
|
||||
// Load .env if it exists (fallback)
|
||||
dotenv.config({ path: ".env" });
|
||||
|
||||
// Use a relative import; path alias "~" may not resolve in CLI context
|
||||
import { env } from "./src/env.js";
|
||||
// import { env } from "./src/env.js";
|
||||
|
||||
if (!process.env.DATABASE_URL) {
|
||||
throw new Error("DATABASE_URL is not set");
|
||||
}
|
||||
|
||||
export default {
|
||||
schema: "./src/server/db/schema.ts",
|
||||
dialect: "postgresql",
|
||||
dbCredentials: {
|
||||
url: env.DATABASE_URL,
|
||||
url: process.env.DATABASE_URL,
|
||||
},
|
||||
tablesFilter: ["beenvoice_*"],
|
||||
} satisfies Config;
|
||||
|
||||
Reference in New Issue
Block a user