2026-06-01 21:44:29 +07:00
|
|
|
import "dotenv/config";
|
2026-07-30 11:50:48 +07:00
|
|
|
import type { AppConfig } from "@/shared/config/index";
|
|
|
|
|
import { loadConfig as sharedLoadConfig } from "@/shared/config/index";
|
2026-06-01 21:44:29 +07:00
|
|
|
|
2026-07-27 21:54:31 +07:00
|
|
|
// Re-export the unified config — all EFFECTIVE_* fields are already
|
|
|
|
|
// computed by the shared loadConfig().
|
|
|
|
|
export type { AppConfig };
|
2026-06-01 21:44:29 +07:00
|
|
|
|
|
|
|
|
export function loadConfig(env: NodeJS.ProcessEnv = process.env): AppConfig {
|
2026-07-27 21:54:31 +07:00
|
|
|
return sharedLoadConfig(env);
|
2026-06-01 21:44:29 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const config = loadConfig();
|