From 9afdecb76ca5dde8bf4402c70cce8c7e94660077 Mon Sep 17 00:00:00 2001 From: Andrew Pennington Date: Thu, 15 Aug 2024 23:42:34 +0100 Subject: [PATCH] Oops --- 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 c83e57d..d8ce30c 100644 --- a/ui/lib/serverEnvironment.ts +++ b/ui/lib/serverEnvironment.ts @@ -23,7 +23,7 @@ async function fetchConfig() { } } -export async function await 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];