cspHashSchema() — astro Function Reference
Architecture documentation for the cspHashSchema() function in config.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 1d125969_9511_437a_33c8_02435b009b35["cspHashSchema()"] 12361455_4ce4_1b8b_4844_c147f4e9ca5e["config.ts"] 1d125969_9511_437a_33c8_02435b009b35 -->|defined in| 12361455_4ce4_1b8b_4844_c147f4e9ca5e style 1d125969_9511_437a_33c8_02435b009b35 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/csp/config.ts lines 33–40
export const cspHashSchema = z.custom<`${CspAlgorithmValue}${string}`>((value) => {
if (typeof value !== 'string') {
return false;
}
return ALGORITHM_VALUES.some((allowedValue) => {
return value.startsWith(allowedValue);
});
});
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does cspHashSchema() do?
cspHashSchema() is a function in the astro codebase, defined in packages/astro/src/core/csp/config.ts.
Where is cspHashSchema() defined?
cspHashSchema() is defined in packages/astro/src/core/csp/config.ts at line 33.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free