rwsdk
Version:
Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime
22 lines (21 loc) • 760 B
text/typescript
import { InlineConfig } from "vite";
import { unstable_readConfig } from "wrangler";
export type RedwoodPluginOptions = {
silent?: boolean;
rootDir?: string;
includeCloudflarePlugin?: boolean;
includeReactPlugin?: boolean;
configPath?: string;
forceClientPaths?: string[];
forceServerPaths?: string[];
entry?: {
worker?: string;
};
};
export declare const determineWorkerEntryPathname: ({ projectRootDir, workerConfigPath, options, readConfig, }: {
projectRootDir: string;
workerConfigPath: string;
options: RedwoodPluginOptions;
readConfig?: typeof unstable_readConfig;
}) => Promise<string>;
export declare const redwoodPlugin: (options?: RedwoodPluginOptions) => Promise<InlineConfig["plugins"]>;