* this function helps vercel functions to avoid download the cert since it can get it from env-vars
({ cert }: { cert?: string })
| 39 | * this function helps vercel functions to avoid download the cert since it can get it from env-vars |
| 40 | */ |
| 41 | function createCertFile({ cert }: { cert?: string }) { |
| 42 | if (!isSsl()) return; |
| 43 | if (!fs.existsSync(certOut)) { |
| 44 | createFile(cert); |
| 45 | } |
| 46 | return certOut; |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * this function will return the connection string for our database |
no test coverage detected