Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanniser committed Oct 18, 2024
2 parents 8d850a5 + 24d87c6 commit 64f61a8
Show file tree
Hide file tree
Showing 5 changed files with 2,219 additions and 2,679 deletions.
4 changes: 4 additions & 0 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import "./drizzle/envConfig";
import { defineConfig } from "drizzle-kit";

export default defineConfig({
schema: "./src/db/schema.ts",
dialect: "postgresql",
dbCredentials: {
url: process.env.POSTGRES_URL!,
},
verbose: true,
strict: true,
});
4 changes: 4 additions & 0 deletions drizzle/envConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { loadEnvConfig } from "@next/env";

const projectDir = process.cwd();
loadEnvConfig(projectDir);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"db:push": "drizzle-kit push"
},
"dependencies": {
"@next/env": "^14.2.15",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-slot": "^1.1.0",
"@vercel/functions": "^1.4.2",
Expand Down
Loading

0 comments on commit 64f61a8

Please sign in to comment.