23 lines
867 B
TypeScript
23 lines
867 B
TypeScript
|
import type { WorkerRequestHandler, WorkerUpgradeHandler } from './types';
|
||
|
import '../node-polyfill-fetch';
|
||
|
import '../node-environment';
|
||
|
import '../require-hook';
|
||
|
import '../../lib/polyfill-promise-with-resolvers';
|
||
|
export type RenderServer = Pick<typeof import('./render-server'), 'initialize' | 'deleteCache' | 'clearModuleContext' | 'deleteAppClientCache' | 'propagateServerField'>;
|
||
|
export interface LazyRenderServerInstance {
|
||
|
instance?: RenderServer;
|
||
|
}
|
||
|
export declare function initialize(opts: {
|
||
|
dir: string;
|
||
|
port: number;
|
||
|
dev: boolean;
|
||
|
server?: import('http').Server;
|
||
|
minimalMode?: boolean;
|
||
|
hostname?: string;
|
||
|
isNodeDebugging: boolean;
|
||
|
keepAliveTimeout?: number;
|
||
|
customServer?: boolean;
|
||
|
experimentalTestProxy?: boolean;
|
||
|
experimentalHttpsServer?: boolean;
|
||
|
}): Promise<[WorkerRequestHandler, WorkerUpgradeHandler]>;
|