createStandaloneHandler() — astro Function Reference
Architecture documentation for the createStandaloneHandler() function in standalone.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 1387d7ff_b01e_ea25_1736_217c9f8c2698["createStandaloneHandler()"] 61bdb796_7444_31bb_d2a3_47bbf4268895["standalone.ts"] 1387d7ff_b01e_ea25_1736_217c9f8c2698 -->|defined in| 61bdb796_7444_31bb_d2a3_47bbf4268895 9cd76d33_ae0f_8fdb_eb4a_196186334dbc["standalone()"] 9cd76d33_ae0f_8fdb_eb4a_196186334dbc -->|calls| 1387d7ff_b01e_ea25_1736_217c9f8c2698 style 1387d7ff_b01e_ea25_1736_217c9f8c2698 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/node/src/standalone.ts lines 36–50
export function createStandaloneHandler(app: NodeApp, options: Options) {
const appHandler = createAppHandler(app, options);
const staticHandler = createStaticHandler(app, options);
return (req: http.IncomingMessage, res: http.ServerResponse) => {
try {
// validate request path
decodeURI(req.url!);
} catch {
res.writeHead(400);
res.end('Bad request.');
return;
}
staticHandler(req, res, () => appHandler(req, res));
};
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does createStandaloneHandler() do?
createStandaloneHandler() is a function in the astro codebase, defined in packages/integrations/node/src/standalone.ts.
Where is createStandaloneHandler() defined?
createStandaloneHandler() is defined in packages/integrations/node/src/standalone.ts at line 36.
What calls createStandaloneHandler()?
createStandaloneHandler() is called by 1 function(s): standalone.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free