Oops
This commit is contained in:
parent
631a5e3e31
commit
9afdecb76c
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ async function fetchConfig() {
|
|||
}
|
||||
}
|
||||
|
||||
export async function await getServerEnv(envVar: string): Promise<string> {
|
||||
export async function getServerEnv(envVar: string): Promise<string> {
|
||||
// Check if the cache is still valid
|
||||
if (cachedConfig && cacheTimestamp && Date.now() - cacheTimestamp < CACHE_DURATION_MS) {
|
||||
return cachedConfig[envVar] || process.env[envVar];
|
||||
|
|
Loading…
Add table
Reference in a new issue