nostr-deploy-server
Version:
Node.js server for hosting static websites under npub subdomains using Nostr protocol and Blossom servers
32 lines • 840 B
TypeScript
export interface SimpleSSRResult {
html: string;
contentType: string;
status: number;
}
export declare class SimpleSSRHelper {
private config;
/**
* Render a page using a fresh browser instance (simpler approach)
*/
renderPage(url: string, originalContent: Buffer, contentType: string): Promise<SimpleSSRResult>;
/**
* Add basic SSR meta tags
*/
private addSSRMetaTags;
/**
* Check if a file should be SSR rendered
*/
shouldRenderSSR(contentType: string, path: string, userAgent?: string): boolean;
/**
* Close any open browser instances
*/
close(): Promise<void>;
/**
* Get browser statistics
*/
getBrowserStats(): Promise<{
isConnected: boolean;
pagesCount: number;
}>;
}
//# sourceMappingURL=ssr-simple.d.ts.map