next() — astro Function Reference
Architecture documentation for the next() function in next-steps.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 8a7a3ae7_8e78_a5f0_7a78_ce25c5931d51["next()"] c8aa5740_2077_557c_0f1e_cd681764abed["next-steps.ts"] 8a7a3ae7_8e78_a5f0_7a78_ce25c5931d51 -->|defined in| c8aa5740_2077_557c_0f1e_cd681764abed style 8a7a3ae7_8e78_a5f0_7a78_ce25c5931d51 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/create-astro/src/actions/next-steps.ts lines 5–24
export async function next(
ctx: Pick<Context, 'hat' | 'tie' | 'cwd' | 'packageManager' | 'skipHouston'>,
) {
let projectDir = path.relative(process.cwd(), ctx.cwd);
const commandMap: { [key: string]: string } = {
npm: 'npm run dev',
bun: 'bun run dev',
yarn: 'yarn dev',
pnpm: 'pnpm dev',
};
const devCmd = commandMap[ctx.packageManager as keyof typeof commandMap] || 'npm run dev';
await nextSteps({ projectDir, devCmd });
if (!ctx.skipHouston) {
await say(['Good luck out there, astronaut! 🚀'], { hat: ctx.hat, tie: ctx.tie });
}
return;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does next() do?
next() is a function in the astro codebase, defined in packages/create-astro/src/actions/next-steps.ts.
Where is next() defined?
next() is defined in packages/create-astro/src/actions/next-steps.ts at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free