(url: string)
| 9 | } |
| 10 | |
| 11 | function normalizeBaseUrl(url: string): string { |
| 12 | if (hasHttpProtocol(url)) { |
| 13 | return url |
| 14 | } |
| 15 | |
| 16 | const protocol = isProd ? 'https://' : 'http://' |
| 17 | return `${protocol}${url}` |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Returns the base URL of the application from NEXT_PUBLIC_APP_URL |
no test coverage detected