64 lines
1.2 KiB
TypeScript
64 lines
1.2 KiB
TypeScript
import { CloudFrontRequest } from 'aws-lambda';
|
|
|
|
export type DynamicPageKeyValue = {
|
|
[key: string]: {
|
|
file: string;
|
|
regex: string;
|
|
};
|
|
};
|
|
|
|
export type OriginRequestApiHandlerManifest = {
|
|
apis: {
|
|
dynamic: DynamicPageKeyValue;
|
|
nonDynamic: {
|
|
[key: string]: string;
|
|
};
|
|
};
|
|
};
|
|
|
|
export type OriginRequestDefaultHandlerManifest = {
|
|
buildId: string;
|
|
pages: {
|
|
ssr: {
|
|
dynamic: DynamicPageKeyValue;
|
|
nonDynamic: {
|
|
[key: string]: string;
|
|
};
|
|
};
|
|
html: {
|
|
nonDynamic: {
|
|
[path: string]: string;
|
|
};
|
|
dynamic: DynamicPageKeyValue;
|
|
};
|
|
};
|
|
publicFiles: {
|
|
[key: string]: string;
|
|
};
|
|
};
|
|
|
|
export type OriginRequestEvent = {
|
|
Records: [{ cf: { request: CloudFrontRequest } }];
|
|
};
|
|
|
|
export type PreRenderedManifest = {
|
|
version: 2;
|
|
routes: {
|
|
[route: string]: {
|
|
initialRevalidateSeconds: number | false;
|
|
srcRoute: string | null;
|
|
dataRoute: string;
|
|
};
|
|
};
|
|
dynamicRoutes: {
|
|
[route: string]: {
|
|
routeRegex: string;
|
|
fallback: string | false;
|
|
dataRoute: string;
|
|
dataRouteRegex: string;
|
|
};
|
|
};
|
|
preview: {
|
|
previewModeId: string;
|
|
};
|
|
};
|