verify() — astro Function Reference
Architecture documentation for the verify() function in verify.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 67557263_b36c_bc5c_6a7b_6852f5ea973f["verify()"] 9eee6473_b978_8f37_044a_b59898b0a6b1["verify.ts"] 67557263_b36c_bc5c_6a7b_6852f5ea973f -->|defined in| 9eee6473_b978_8f37_044a_b59898b0a6b1 45c4b256_512e_e0c2_02d5_087738e20c8b["isOnline()"] 67557263_b36c_bc5c_6a7b_6852f5ea973f -->|calls| 45c4b256_512e_e0c2_02d5_087738e20c8b style 67557263_b36c_bc5c_6a7b_6852f5ea973f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/create-astro/src/actions/verify.ts lines 8–32
export async function verify(
ctx: Pick<Context, 'version' | 'dryRun' | 'template' | 'ref' | 'exit'>,
) {
if (!ctx.dryRun) {
const online = await isOnline();
if (!online) {
bannerAbort();
log('');
error('error', `Unable to connect to the internet.`);
ctx.exit(1);
}
}
if (ctx.template) {
const target = getTemplateTarget(ctx.template, ctx.ref);
const ok = await verifyTemplate(target);
if (!ok) {
bannerAbort();
log('');
error('error', `Template ${color.reset(ctx.template)} ${color.dim('could not be found!')}`);
await info('check', 'https://astro.build/examples');
ctx.exit(1);
}
}
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does verify() do?
verify() is a function in the astro codebase, defined in packages/create-astro/src/actions/verify.ts.
Where is verify() defined?
verify() is defined in packages/create-astro/src/actions/verify.ts at line 8.
What does verify() call?
verify() calls 1 function(s): isOnline.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free