* Environment variables can come from process.env or from window * This module abstracts the source of them.
(name: string)
| 4 | */ |
| 5 | |
| 6 | function get(name: string): string | undefined { |
| 7 | // @ts-ignore |
| 8 | return window[name] || process.env[name]; |
| 9 | } |
| 10 | |
| 11 | export const REACT_APP_SERVER_URL = get("REACT_APP_SERVER_URL"); |
no outgoing calls
no test coverage detected