Template
1
0
Files
boilerplate/platform/database/config.ts
2025-11-23 22:56:58 +01:00

28 lines
626 B
TypeScript

import { getEnvironmentVariable } from "@platform/config/environment.ts";
import z from "zod";
export const config = {
xtdb: {
host: getEnvironmentVariable({
key: "DB_XTDB_HOST",
type: z.string(),
fallback: "localhost",
}),
port: getEnvironmentVariable({
key: "DB_XTDB_PORT",
type: z.coerce.number(),
fallback: "5432",
}),
user: getEnvironmentVariable({
key: "DB_XTDB_USER",
type: z.string(),
fallback: "xtdb",
}),
pass: getEnvironmentVariable({
key: "DB_XTDB_PASSWORD",
type: z.string(),
fallback: "xtdb",
}),
},
};