constants.d.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import type { ServerRuntime } from '../types';
  2. export declare const API_ROUTE: RegExp;
  3. export declare const MIDDLEWARE_FILENAME = "middleware";
  4. export declare const MIDDLEWARE_LOCATION_REGEXP: string;
  5. export declare const PAGES_DIR_ALIAS = "private-next-pages";
  6. export declare const DOT_NEXT_ALIAS = "private-dot-next";
  7. export declare const ROOT_DIR_ALIAS = "private-next-root-dir";
  8. export declare const APP_DIR_ALIAS = "private-next-app-dir";
  9. export declare const RSC_MOD_REF_PROXY_ALIAS = "private-next-rsc-mod-ref-proxy";
  10. export declare const PUBLIC_DIR_MIDDLEWARE_CONFLICT = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict";
  11. export declare const SSG_GET_INITIAL_PROPS_CONFLICT = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps";
  12. export declare const SERVER_PROPS_GET_INIT_PROPS_CONFLICT = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.";
  13. export declare const SERVER_PROPS_SSG_CONFLICT = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps";
  14. export declare const STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props";
  15. export declare const SERVER_PROPS_EXPORT_ERROR = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export";
  16. export declare const GSP_NO_RETURNED_VALUE = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?";
  17. export declare const GSSP_NO_RETURNED_VALUE = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?";
  18. export declare const UNSTABLE_REVALIDATE_RENAME_ERROR: string;
  19. export declare const GSSP_COMPONENT_MEMBER_ERROR = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member";
  20. export declare const NON_STANDARD_NODE_ENV = "You are using a non-standard \"NODE_ENV\" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env";
  21. export declare const SSG_FALLBACK_EXPORT_ERROR = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export";
  22. export declare const ESLINT_DEFAULT_DIRS: string[];
  23. export declare const ESLINT_PROMPT_VALUES: ({
  24. title: string;
  25. recommended: boolean;
  26. config: {
  27. extends: string;
  28. };
  29. } | {
  30. title: string;
  31. config: {
  32. extends: string;
  33. };
  34. recommended?: undefined;
  35. } | {
  36. title: string;
  37. config: null;
  38. recommended?: undefined;
  39. })[];
  40. export declare const SERVER_RUNTIME: Record<string, ServerRuntime>;
  41. export declare const WEBPACK_LAYERS: {
  42. server: string;
  43. client: string;
  44. api: string;
  45. rscShared: string;
  46. middleware: string;
  47. edgeAsset: string;
  48. };