CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history
drizzle.config.ts
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| fc1817a | 1 | import { defineConfig } from "drizzle-kit"; |
| 2 | ||
| 67f64a3 | 3 | const databaseUrl = process.env.DATABASE_URL; |
| 4 | if (!databaseUrl) { | |
| 5 | throw new Error( | |
| 6 | "DATABASE_URL is not set. Required for drizzle-kit (generate / migrate / studio). " + | |
| 7 | "Set it in your environment or .env file before running drizzle-kit commands." | |
| 8 | ); | |
| 9 | } | |
| 10 | ||
| fc1817a | 11 | export default defineConfig({ |
| 12 | schema: "./src/db/schema.ts", | |
| 13 | out: "./drizzle", | |
| 14 | dialect: "postgresql", | |
| 15 | dbCredentials: { | |
| 67f64a3 | 16 | url: databaseUrl, |
| fc1817a | 17 | }, |
| 18 | }); |