12 lines
255 B
TypeScript
12 lines
255 B
TypeScript
export interface Settings {
|
|
port: number;
|
|
authServiceUrl: string;
|
|
}
|
|
|
|
export function loadSettings(): Settings {
|
|
return {
|
|
port: Number(process.env.PORT ?? 3000),
|
|
authServiceUrl: process.env.AUTH_SERVICE_URL ?? "http://localhost:3010",
|
|
};
|
|
}
|