MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / downloadCert

Function downloadCert

packages/database/src/database.ts:32–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 * this function helps fargate tasks to download the cert instead of getting it from env-vars
31 */
32export 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

Callers 2

runWorkerFunction · 0.90
createInstanceMethod · 0.90

Calls 3

isSslFunction · 0.85
createFileFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected