-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: ✨ migrate to drizzle * fix: 🐛 postgres and count issues * fix: 🐛 schema and lucia auth v2 tables * fix: 🐛 lucia postgres setup * fix: 🐛 api endpoints * fix: 🐛 contacts list api endpoint --------- Co-authored-by: Eddy Chen <[email protected]>
- Loading branch information
1 parent
5188870
commit 9166365
Showing
18 changed files
with
792 additions
and
553 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { defineConfig } from "drizzle-kit"; | ||
import "dotenv/config"; | ||
|
||
if (!process.env.DATABASE_URL) { | ||
throw new Error("DATABASE_URL environment variable is required"); | ||
} | ||
|
||
export default defineConfig({ | ||
schema: "./src/lib/db/schema.ts", | ||
out: "./drizzle", | ||
driver: "pg", | ||
dbCredentials: { | ||
connectionString: process.env.DATABASE_URL, | ||
}, | ||
schemaFilter: ["dev"], | ||
verbose: true, | ||
strict: true, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.