• Creates route config from the file system using a convention that matches Remix v2's route file naming, for use within routes.ts.

    Parameters

    • options: {
          ignoredRouteFiles?: string[];
          rootDirectory?: string;
      } = {}
      • OptionalignoredRouteFiles?: string[]

        An array of minimatch globs that match files to ignore. Defaults to [].

      • OptionalrootDirectory?: string

        The directory containing file system routes, relative to the app directory. Defaults to "./routes".

    Returns Promise<RouteConfigEntry[]>