UNPKG

@builder.io/dev-tools

Version:

Builder.io Visual CMS Devtools

15 lines (14 loc) 752 B
import type { DevToolsSys } from "../../types"; import type { ProxyMiddleware } from "../../types/proxy-middleware"; import type { IncomingMessage } from "http"; export declare const createPassThroughProxy: () => import("http-proxy-3").ProxyServer<typeof IncomingMessage, typeof import("http").ServerResponse, Error>; export declare const createProxyMiddleware: (serverUrl: URL, sys: DevToolsSys) => ProxyMiddleware | undefined; /** * Detects if HTML was server-side rendered by checking for framework-specific markers. * Returns whether SSR was used and whether the header/head was server-rendered. */ export declare const detectSSR: (body: string) => { hasSSR: boolean; hasHeaderSSR: boolean; }; export declare const permissiveHTTPS: any;