(env: Env)
| 369 | }; |
| 370 | |
| 371 | const checkUrls = (env: Env): string[] => { |
| 372 | const requireHttps = env.NODE_ENV === "production"; |
| 373 | |
| 374 | return [ |
| 375 | ...checkHttpUrl(env.FRONTEND_URL, "FRONTEND_URL", requireHttps), |
| 376 | ...checkHttpUrl(env.PUBLIC_API_URL, "PUBLIC_API_URL", requireHttps), |
| 377 | ...(env.NOTIFICATION_SETTINGS_URL === "" |
| 378 | ? [] |
| 379 | : checkHttpUrl( |
| 380 | env.NOTIFICATION_SETTINGS_URL, |
| 381 | "NOTIFICATION_SETTINGS_URL", |
| 382 | requireHttps |
| 383 | )), |
| 384 | ]; |
| 385 | }; |
| 386 | |
| 387 | /** |
| 388 | * MFA_ENCRYPTION_KEY must be present in production so a misconfigured |
no test coverage detected