Files
skills-here-run-place/node_modules/@astrojs/node/dist/serve-static.d.ts
Alejandro Martinez f09af719cf Initial commit
2026-02-12 02:04:10 +01:00

11 lines
644 B
TypeScript

import type { IncomingMessage, ServerResponse } from 'node:http';
import type { NodeApp } from 'astro/app/node';
import type { Options } from './types.js';
/**
* Creates a Node.js http listener for static files and prerendered pages.
* In standalone mode, the static handler is queried first for the static files.
* If one matching the request path is not found, it relegates to the SSR handler.
* Intended to be used only in the standalone mode.
*/
export declare function createStaticHandler(app: NodeApp, options: Options): (req: IncomingMessage, res: ServerResponse, ssr: () => unknown) => ServerResponse<IncomingMessage> | undefined;