get-page-paths.d.ts 570 B

123456789101112
  1. /**
  2. * Calculate all possible pagePaths for a given normalized pagePath along with
  3. * allowed extensions. This can be used to check which one of the files exists
  4. * and to debug inspected locations.
  5. *
  6. * For pages, map `/route` to [`/route.[ext]`, `/route/index.[ext]`]
  7. * For app paths, map `/route/page` to [`/route/page.[ext]`]
  8. *
  9. * @param normalizedPagePath Normalized page path (it will denormalize).
  10. * @param extensions Allowed extensions.
  11. */
  12. export declare function getPagePaths(normalizedPagePath: string, extensions: string[], isAppDir: boolean): string[];