PreviewServer Type — astro Architecture
Architecture documentation for the PreviewServer type/interface in static-preview-server.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 270928b5_3e1f_443c_6a95_564efc1a9afb["PreviewServer"] bf1307cf_9863_81da_aef9_4f34d8a84d2e["static-preview-server.ts"] 270928b5_3e1f_443c_6a95_564efc1a9afb -->|defined in| bf1307cf_9863_81da_aef9_4f34d8a84d2e style 270928b5_3e1f_443c_6a95_564efc1a9afb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/preview/static-preview-server.ts lines 12–18
interface PreviewServer {
host?: string;
port: number;
server: http.Server;
closed(): Promise<void>;
stop(): Promise<void>;
}
Source
Frequently Asked Questions
What is the PreviewServer type?
PreviewServer is a type/interface in the astro codebase, defined in packages/astro/src/core/preview/static-preview-server.ts.
Where is PreviewServer defined?
PreviewServer is defined in packages/astro/src/core/preview/static-preview-server.ts at line 12.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free