()
| 30 | * this function helps fargate tasks to download the cert instead of getting it from env-vars |
| 31 | */ |
| 32 | export async function downloadCert() { |
| 33 | if (!isSsl()) return; |
| 34 | const response = await axios.get(AWS_CERT_URL); |
| 35 | createFile(response.data); |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * this function helps vercel functions to avoid download the cert since it can get it from env-vars |
no test coverage detected