createInvalidVariablesError() — astro Function Reference
Architecture documentation for the createInvalidVariablesError() function in runtime.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 1f73fb52_dcdc_d285_325c_79c564a18a40["createInvalidVariablesError()"] ba37e1cf_3c52_9aae_c778_4156e3c9fdff["runtime.ts"] 1f73fb52_dcdc_d285_325c_79c564a18a40 -->|defined in| ba37e1cf_3c52_9aae_c778_4156e3c9fdff style 1f73fb52_dcdc_d285_325c_79c564a18a40 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/env/runtime.ts lines 28–39
export function createInvalidVariablesError(
key: string,
type: string,
result: ValidationResultInvalid,
) {
return new AstroError({
...AstroErrorData.EnvInvalidVariables,
message: AstroErrorData.EnvInvalidVariables.message(
invalidVariablesToError([{ key, type, errors: result.errors }]),
),
});
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does createInvalidVariablesError() do?
createInvalidVariablesError() is a function in the astro codebase, defined in packages/astro/src/env/runtime.ts.
Where is createInvalidVariablesError() defined?
createInvalidVariablesError() is defined in packages/astro/src/env/runtime.ts at line 28.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free