fastify-prerender-plugin
Version:
Prerender SPA pages for bots
13 lines (9 loc) • 399 B
text/typescript
import * as fastify from 'fastify';
declare const prerenderPlugin: fastify.FastifyPluginCallback<{
urls: (string | RegExp)[];
host: string;
port: number;
tmpPath?: string;
}, fastify.RawServerDefault, fastify.FastifyTypeProviderDefault, fastify.FastifyBaseLogger>;
declare function requestFromBrowser(url: string): Promise<string>;
export { prerenderPlugin, requestFromBrowser };