feat: checkpoint
This commit is contained in:
27
platform/database/config.ts
Normal file
27
platform/database/config.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
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",
|
||||
}),
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user