Files
netris-nestri/packages/core/drizzle.config.ts
Wanjohi 7ecc068466 feat(infra): Use a shared VPC (#218)
## Description
The scope of this PR is to add a shared VPC for everyone on the team.
2025-03-26 06:29:25 +03:00

19 lines
494 B
TypeScript

import { Resource } from "sst";
import { defineConfig } from "drizzle-kit";
const connection = {
user: Resource.Database.username,
password: Resource.Database.password,
host: Resource.Database.host,
};
export default defineConfig({
verbose: true,
strict: true,
out: "./migrations",
dialect: "postgresql",
dbCredentials: {
url: `postgres://${connection.user}:${connection.password}@${connection.host}/nestri`,
},
schema: "./src/**/*.sql.ts",
});