This repository has been archived on 2026-03-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
token-gated-economy/lib/db/drizzle.config.ts
2026-03-13 23:21:55 +00:00

15 lines
352 B
TypeScript

import { defineConfig } from "drizzle-kit";
import path from "path";
if (!process.env.DATABASE_URL) {
throw new Error("DATABASE_URL, ensure the database is provisioned");
}
export default defineConfig({
schema: path.join(__dirname, "./src/schema/index.ts"),
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL,
},
});