@builder.io/dev-tools
Version:
Builder.io Visual CMS Devtools
20 lines (19 loc) • 782 B
TypeScript
import { type Express } from "express";
import type { InitStateMachine } from "./InitStateMachine";
export declare const BUILDER_ENDPOINT_PREFIX = "/_builder.io";
export declare const BUILDER_API_ENDPOINT_PREFIX: string;
/**
* Endpoints that are not authenticated because they are used by the fly.io health check.
*/
export declare const NON_AUTHENTICATED_ENDPOINTS: {
readonly STATUS: "/status";
readonly PROXY_STATUS: "/proxy-status";
readonly STATUS_V2: "/status-v2";
};
export declare const configureServer: ({ app, validBuilderPrivateKey, authenticateProxy, isLocal, initStateMachine, }: {
app: Express;
validBuilderPrivateKey: string | undefined;
authenticateProxy: boolean;
isLocal: boolean;
initStateMachine?: InitStateMachine;
}) => void;