From d1e382831c1c4de2da5004708a493125e4b8926c Mon Sep 17 00:00:00 2001 From: Andrew Pennington Date: Thu, 15 Aug 2024 23:51:53 +0100 Subject: [PATCH] Type --- ui/lib/serverEnvironment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/lib/serverEnvironment.ts b/ui/lib/serverEnvironment.ts index 3e9c648..de07965 100644 --- a/ui/lib/serverEnvironment.ts +++ b/ui/lib/serverEnvironment.ts @@ -23,7 +23,7 @@ async function fetchConfig() { } } -export async function getServerEnv(envVar: string): Promise { +export async function getServerEnv(envVar: string): Promise { // Check if the cache is still valid if (cachedConfig && cacheTimestamp && Date.now() - cacheTimestamp < CACHE_DURATION_MS) { return cachedConfig[envVar] || process.env[envVar];