_internalGetSecret() — astro Function Reference
Architecture documentation for the _internalGetSecret() function in env.mjs from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 8e04ea53_8e10_d0e9_201b_131bd21829f4["_internalGetSecret()"] 961a1247_f990_dce4_574e_c55032536b76["env.mjs"] 8e04ea53_8e10_d0e9_201b_131bd21829f4 -->|defined in| 961a1247_f990_dce4_574e_c55032536b76 7283606a_0013_94ca_eba1_f58016e3c5c7["getEnv()"] 8e04ea53_8e10_d0e9_201b_131bd21829f4 -->|calls| 7283606a_0013_94ca_eba1_f58016e3c5c7 style 8e04ea53_8e10_d0e9_201b_131bd21829f4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/templates/env.mjs lines 25–36
const _internalGetSecret = (key) => {
const rawVariable = getEnv(key);
const variable = rawVariable === '' ? undefined : rawVariable;
const options = schema[key];
const result = validateEnvVariable(variable, options);
if (result.ok) {
return result.value;
}
const type = getEnvFieldType(options);
throw createInvalidVariablesError(key, type, result);
};
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does _internalGetSecret() do?
_internalGetSecret() is a function in the astro codebase, defined in packages/astro/templates/env.mjs.
Where is _internalGetSecret() defined?
_internalGetSecret() is defined in packages/astro/templates/env.mjs at line 25.
What does _internalGetSecret() call?
_internalGetSecret() calls 1 function(s): getEnv.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free