Spaces:
Running
Running
File size: 325 Bytes
27127dd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import { defineConfig } from "drizzle-kit";
if (!process.env.DATABASE_URL) {
throw new Error("DATABASE_URL, ensure the database is provisioned");
}
export default defineConfig({
out: "./migrations",
schema: "./shared/schema.ts",
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL,
},
});
|