@platform/react.ssr
Version:
An SSR (server-side-render) system for react apps bundled with ParcelJS and hosted on S3.
53 lines (52 loc) • 1.42 kB
TypeScript
import { t } from './common';
import { Manifest } from './manifest';
export declare class Config {
static create: (options?: {
path?: string | undefined;
}) => Promise<Config>;
private constructor();
private readonly def;
readonly secret: string;
readonly builder: {
bundles: string;
entries: string;
};
readonly s3: {
endpoint: string;
cdn: string;
accessKey: string;
secret: string;
bucket: string;
path: {
base: string;
manifest: string;
bundles: string;
};
readonly config: t.IS3Config;
readonly fs: import("@platform/fs.s3/lib/types").S3;
versions(options?: {
sort?: "ASC" | "DESC" | undefined;
}): Promise<string[]>;
};
readonly manifest: {
local: {
path: string;
readonly exists: Promise<boolean>;
load(): Promise<Manifest>;
ensureLatest(options?: {
minimal?: boolean | undefined;
}): Promise<Manifest>;
};
s3: {
url: string;
get(args?: {
force?: boolean | undefined;
loadBundleManifest?: boolean | undefined;
}): Promise<Manifest>;
};
};
createFromTemplate(): Promise<{
source: string;
target: string;
}>;
}