(variable: string)
| 8 | * which Next 16.2+ rejects outside a request scope. |
| 9 | */ |
| 10 | const getEnv = (variable: string): string | undefined => { |
| 11 | if (typeof window === 'undefined') return process.env[variable] |
| 12 | return window.__ENV?.[variable] ?? process.env[variable] |
| 13 | } |
| 14 | |
| 15 | // biome-ignore format: keep alignment for readability |
| 16 | export const env = createEnv({ |
no outgoing calls
no test coverage detected