createServerState() — astro Function Reference
Architecture documentation for the createServerState() function in server-state.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 5952607a_4e38_c51a_b294_051040b1e438["createServerState()"] 812671e7_93e2_bcef_6639_81cea313e4a8["server-state.ts"] 5952607a_4e38_c51a_b294_051040b1e438 -->|defined in| 812671e7_93e2_bcef_6639_81cea313e4a8 style 5952607a_4e38_c51a_b294_051040b1e438 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/vite-plugin-astro-server/server-state.ts lines 14–19
export function createServerState(): ServerState {
return {
routes: new Map(),
state: 'fresh',
};
}
Domain
Subdomains
Source
Frequently Asked Questions
What does createServerState() do?
createServerState() is a function in the astro codebase, defined in packages/astro/src/vite-plugin-astro-server/server-state.ts.
Where is createServerState() defined?
createServerState() is defined in packages/astro/src/vite-plugin-astro-server/server-state.ts at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free