mirror of
https://github.com/sst/opencode.git
synced 2025-08-22 14:04:07 +00:00
20 lines
488 B
TypeScript
20 lines
488 B
TypeScript
import { defineConfig } from "drizzle-kit"
|
|
import { Resource } from "sst"
|
|
|
|
export default defineConfig({
|
|
out: "./migrations/",
|
|
strict: true,
|
|
schema: ["./src/**/*.sql.ts"],
|
|
verbose: true,
|
|
dialect: "postgresql",
|
|
dbCredentials: {
|
|
database: Resource.Database.database,
|
|
host: Resource.Database.host,
|
|
user: Resource.Database.username,
|
|
password: Resource.Database.password,
|
|
port: Resource.Database.port,
|
|
ssl: {
|
|
rejectUnauthorized: false,
|
|
},
|
|
},
|
|
})
|