18 lines
457 B
TypeScript
18 lines
457 B
TypeScript
const config = {
|
|
username: Deno.env.get("DB_USER") ?? "postgres",
|
|
hostname: Deno.env.get("DB_HOST") ?? "localhost",
|
|
password: Deno.env.get("DB_PW") ?? "",
|
|
dbPort: Number(Deno.env.get("DB_PORT") ?? 5432),
|
|
port: Number(Deno.env.get("PORT") ?? 8080),
|
|
};
|
|
|
|
console.log(`ENV:
|
|
db username: ${config.username}
|
|
db pass: ******
|
|
db port: ${config.dbPort}
|
|
server port: ${config.port}
|
|
server hostname: ${config.hostname}
|
|
`);
|
|
|
|
export default config;
|