UserOptions Type — astro Architecture
Architecture documentation for the UserOptions type/interface in types.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 14e40ccc_950d_1cae_7c53_442811c0f8f8["UserOptions"] fcb0b8cf_45f8_2d29_61ca_f2b1b437b94b["types.ts"] 14e40ccc_950d_1cae_7c53_442811c0f8f8 -->|defined in| fcb0b8cf_45f8_2d29_61ca_f2b1b437b94b style 14e40ccc_950d_1cae_7c53_442811c0f8f8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/node/src/types.ts lines 4–33
export interface UserOptions {
/**
* Specifies the mode that the adapter builds to.
*
* - 'middleware' - Build to middleware, to be used within another Node.js server, such as Express.
* - 'standalone' - Build to a standalone server. The server starts up just by running the built script.
*/
mode: 'middleware' | 'standalone';
/**
* Disables HTML streaming. This is useful for example if there are constraints from your host.
*/
experimentalDisableStreaming?: boolean;
/**
* If enabled, the adapter will save [static headers in the framework API file](https://docs.netlify.com/frameworks-api/#headers).
*
* Here the list of the headers that are added:
* - The CSP header of the static pages is added when CSP support is enabled.
*/
staticHeaders?: boolean;
/**
* The host that should be used if the server needs to fetch the prerendered error page.
* If not provided, this will default to the host of the server. This should be set if the server
* should fetch prerendered error pages from a different host than the public URL of the server.
* This is useful for example if the server is behind a reverse proxy or a load balancer, or if
* static files are hosted on a different domain. Do not include a path in the URL: it will be ignored.
*/
experimentalErrorPageHost?: string | URL;
}
Defined In
Source
Frequently Asked Questions
What is the UserOptions type?
UserOptions is a type/interface in the astro codebase, defined in packages/integrations/node/src/types.ts.
Where is UserOptions defined?
UserOptions is defined in packages/integrations/node/src/types.ts at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free