constants.d.ts 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. export declare type ValueOf<T> = Required<T>[keyof T];
  2. export declare const COMPILER_NAMES: {
  3. readonly client: "client";
  4. readonly server: "server";
  5. readonly edgeServer: "edge-server";
  6. };
  7. export declare type CompilerNameValues = ValueOf<typeof COMPILER_NAMES>;
  8. export declare const COMPILER_INDEXES: {
  9. [compilerKey in CompilerNameValues]: number;
  10. };
  11. export declare const PHASE_EXPORT = "phase-export";
  12. export declare const PHASE_PRODUCTION_BUILD = "phase-production-build";
  13. export declare const PHASE_PRODUCTION_SERVER = "phase-production-server";
  14. export declare const PHASE_DEVELOPMENT_SERVER = "phase-development-server";
  15. export declare const PHASE_TEST = "phase-test";
  16. export declare const PAGES_MANIFEST = "pages-manifest.json";
  17. export declare const APP_PATHS_MANIFEST = "app-paths-manifest.json";
  18. export declare const APP_PATH_ROUTES_MANIFEST = "app-path-routes-manifest.json";
  19. export declare const BUILD_MANIFEST = "build-manifest.json";
  20. export declare const APP_BUILD_MANIFEST = "app-build-manifest.json";
  21. export declare const SUBRESOURCE_INTEGRITY_MANIFEST = "subresource-integrity-manifest";
  22. export declare const EXPORT_MARKER = "export-marker.json";
  23. export declare const EXPORT_DETAIL = "export-detail.json";
  24. export declare const PRERENDER_MANIFEST = "prerender-manifest.json";
  25. export declare const ROUTES_MANIFEST = "routes-manifest.json";
  26. export declare const IMAGES_MANIFEST = "images-manifest.json";
  27. export declare const SERVER_FILES_MANIFEST = "required-server-files.json";
  28. export declare const DEV_CLIENT_PAGES_MANIFEST = "_devPagesManifest.json";
  29. export declare const MIDDLEWARE_MANIFEST = "middleware-manifest.json";
  30. export declare const DEV_MIDDLEWARE_MANIFEST = "_devMiddlewareManifest.json";
  31. export declare const REACT_LOADABLE_MANIFEST = "react-loadable-manifest.json";
  32. export declare const FONT_MANIFEST = "font-manifest.json";
  33. export declare const SERVER_DIRECTORY = "server";
  34. export declare const SERVERLESS_DIRECTORY = "serverless";
  35. export declare const CONFIG_FILES: string[];
  36. export declare const BUILD_ID_FILE = "BUILD_ID";
  37. export declare const BLOCKED_PAGES: string[];
  38. export declare const CLIENT_PUBLIC_FILES_PATH = "public";
  39. export declare const CLIENT_STATIC_FILES_PATH = "static";
  40. export declare const CLIENT_STATIC_FILES_RUNTIME = "runtime";
  41. export declare const STRING_LITERAL_DROP_BUNDLE = "__NEXT_DROP_CLIENT_FILE__";
  42. export declare const MODERN_BROWSERSLIST_TARGET: string[];
  43. export declare const NEXT_BUILTIN_DOCUMENT = "__NEXT_BUILTIN_DOCUMENT__";
  44. export declare const NEXT_CLIENT_SSR_ENTRY_SUFFIX = ".__sc_client__";
  45. export declare const FLIGHT_MANIFEST = "flight-manifest";
  46. export declare const FLIGHT_SERVER_CSS_MANIFEST = "flight-server-css-manifest";
  47. export declare const MIDDLEWARE_BUILD_MANIFEST = "middleware-build-manifest";
  48. export declare const MIDDLEWARE_REACT_LOADABLE_MANIFEST = "middleware-react-loadable-manifest";
  49. export declare const CLIENT_STATIC_FILES_RUNTIME_MAIN = "main";
  50. export declare const CLIENT_STATIC_FILES_RUNTIME_MAIN_APP: string;
  51. export declare const CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH = "react-refresh";
  52. export declare const CLIENT_STATIC_FILES_RUNTIME_AMP = "amp";
  53. export declare const CLIENT_STATIC_FILES_RUNTIME_WEBPACK = "webpack";
  54. export declare const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS = "polyfills";
  55. export declare const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL: unique symbol;
  56. export declare const EDGE_RUNTIME_WEBPACK = "edge-runtime-webpack";
  57. export declare const TEMPORARY_REDIRECT_STATUS = 307;
  58. export declare const PERMANENT_REDIRECT_STATUS = 308;
  59. export declare const STATIC_PROPS_ID = "__N_SSG";
  60. export declare const SERVER_PROPS_ID = "__N_SSP";
  61. export declare const GOOGLE_FONT_PROVIDER = "https://fonts.googleapis.com/";
  62. export declare const OPTIMIZED_FONT_PROVIDERS: {
  63. url: string;
  64. preconnect: string;
  65. }[];
  66. export declare const DEFAULT_SERIF_FONT = "Times New Roman";
  67. export declare const DEFAULT_SANS_SERIF_FONT = "Arial";
  68. export declare const STATIC_STATUS_PAGES: string[];
  69. export declare const TRACE_OUTPUT_VERSION = 1;
  70. export declare const RSC_MODULE_TYPES: {
  71. readonly client: "client";
  72. readonly server: "server";
  73. };
  74. export declare const EDGE_UNSUPPORTED_NODE_APIS: string[];