Skip to content

Commit

Permalink
chore: extract inline connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
alanrsoares committed Aug 7, 2023
1 parent eb35b22 commit 6803ba2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/maestro/drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import type { Config } from "drizzle-kit";

dotenv.config({ path: ".env.local" });

const CONNECTION_STRING = `${process.env.POSTGRES_URL}?sslmode=require`;

export default {
schema: "./src/lib/drizzle/schema",
out: "./src/lib/drizzle/client",
driver: "pg",
dbCredentials: {
connectionString: `${process.env.POSTGRES_URL}?sslmode=require`,
connectionString: CONNECTION_STRING,
},
} satisfies Config;

0 comments on commit 6803ba2

Please sign in to comment.