index.d.ts 745 B

123456789101112131415161718192021222324
  1. import { __ApiPreviewProps } from '../server/api-utils';
  2. export declare type SsgRoute = {
  3. initialRevalidateSeconds: number | false;
  4. srcRoute: string | null;
  5. dataRoute: string;
  6. };
  7. export declare type DynamicSsgRoute = {
  8. routeRegex: string;
  9. fallback: string | null | false;
  10. dataRoute: string;
  11. dataRouteRegex: string;
  12. };
  13. export declare type PrerenderManifest = {
  14. version: 3;
  15. routes: {
  16. [route: string]: SsgRoute;
  17. };
  18. dynamicRoutes: {
  19. [route: string]: DynamicSsgRoute;
  20. };
  21. notFoundRoutes: string[];
  22. preview: __ApiPreviewProps;
  23. };
  24. export default function build(dir: string, conf?: null, reactProductionProfiling?: boolean, debugOutput?: boolean, runLint?: boolean): Promise<void>;