mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
refactor: remove environment variable warning logs
This commit is contained in:
parent
4bbda14bf0
commit
e8302c7667
@ -73,7 +73,6 @@ export type ClientEnvKey = `NEXT_PUBLIC_${keyof ClientEnvConfig}`
|
||||
export function getServerEnv<K extends keyof ServerEnvConfig>(key: K): string | undefined {
|
||||
const value = process.env[key]
|
||||
if (!value) {
|
||||
console.warn(`Environment variable ${key} is not set`)
|
||||
return undefined
|
||||
}
|
||||
return value
|
||||
@ -88,7 +87,6 @@ export function getClientEnv<K extends keyof ClientEnvConfig>(key: K): string |
|
||||
const envKey = `NEXT_PUBLIC_${key}`
|
||||
const value = env(envKey)
|
||||
if (!value) {
|
||||
console.warn(`Environment variable ${envKey} is not set`)
|
||||
return undefined
|
||||
}
|
||||
return value
|
||||
|
Loading…
Reference in New Issue
Block a user