Skip to content

Commit

Permalink
drizzle
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanniser committed Oct 18, 2024
1 parent 2d50d51 commit 691c5d2
Show file tree
Hide file tree
Showing 7 changed files with 1,802 additions and 2,174 deletions.
8 changes: 8 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
POSTGRES_URL="postgres://default:TjVI2u5nXlFJ@ep-white-glade-a61e4tj2-pooler.us-west-2.aws.neon.tech:5432/verceldb?sslmode=require"
POSTGRES_PRISMA_URL="postgres://default:TjVI2u5nXlFJ@ep-white-glade-a61e4tj2-pooler.us-west-2.aws.neon.tech:5432/verceldb?sslmode=require&pgbouncer=true&connect_timeout=15"
POSTGRES_URL_NO_SSL="postgres://default:TjVI2u5nXlFJ@ep-white-glade-a61e4tj2-pooler.us-west-2.aws.neon.tech:5432/verceldb"
POSTGRES_URL_NON_POOLING="postgres://default:[email protected]:5432/verceldb?sslmode=require"
POSTGRES_USER="default"
POSTGRES_HOST="ep-white-glade-a61e4tj2-pooler.us-west-2.aws.neon.tech"
POSTGRES_PASSWORD="TjVI2u5nXlFJ"
POSTGRES_DATABASE="verceldb"
8 changes: 8 additions & 0 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from "drizzle-kit";

export default defineConfig({
schema: "./src/db/schema.ts",
dialect: "postgresql",
verbose: true,
strict: true,
});
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@
"lint": "next lint",
"typecheck": "tsc",
"format:check": "prettier --check .",
"format": "prettier --write . --list-different"
"format": "prettier --write . --list-different",
"db:push": "drizzle-kit push"
},
"dependencies": {
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-slot": "^1.1.0",
"@vercel/functions": "^1.4.2",
"@vercel/postgres": "^0.10.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"drizzle-orm": "^0.35.1",
"lucide-react": "^0.453.0",
"next": "15.0.0-canary.197",
"react": "19.0.0-rc-cd22717c-20241013",
Expand All @@ -29,6 +32,7 @@
"@types/node": "^20",
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]",
"drizzle-kit": "^0.26.2",
"eslint": "^8",
"eslint-config-next": "15.0.0-rc.1",
"postcss": "^8",
Expand Down
Loading

0 comments on commit 691c5d2

Please sign in to comment.