createKeyCommand.run() — astro Function Reference
Architecture documentation for the createKeyCommand.run() function in create-key.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 73a76f39_01a3_3e60_2217_bf81b128cd14["createKeyCommand.run()"] ecd2472f_ebc7_019b_affb_7e0b159a6a4c["create-key.ts"] 73a76f39_01a3_3e60_2217_bf81b128cd14 -->|defined in| ecd2472f_ebc7_019b_affb_7e0b159a6a4c style 73a76f39_01a3_3e60_2217_bf81b128cd14 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/cli/create-key/core/create-key.ts lines 18–25
async run({ logger, keyGenerator }: Options) {
const key = await keyGenerator.generate();
logger.info(
'crypto',
`Generated a key to encrypt props passed to server islands. To reuse the same key across builds, set this value as ASTRO_KEY in an environment variable on your build server.\n\nASTRO_KEY=${key}`,
);
},
Domain
Subdomains
Source
Frequently Asked Questions
What does createKeyCommand.run() do?
createKeyCommand.run() is a function in the astro codebase, defined in packages/astro/src/cli/create-key/core/create-key.ts.
Where is createKeyCommand.run() defined?
createKeyCommand.run() is defined in packages/astro/src/cli/create-key/core/create-key.ts at line 18.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free