import {
  require_lib
} from "./chunk-RIIQA6S6.mjs";
import {
  init_esm_shims
} from "./chunk-RDFZ4GVM.mjs";
import {
  __toESM
} from "./chunk-7KF2HEU2.mjs";

// src/detectors/next.ts
init_esm_shims();
var import_fs_extra = __toESM(require_lib());
import path from "path";
async function detectNext(repoPath) {
  const pages = path.join(repoPath, "pages");
  const app = path.join(repoPath, "app");
  if (await import_fs_extra.default.pathExists(pages) || await import_fs_extra.default.pathExists(app)) {
    return { name: "Next.js App", logo: "frontend/nextdotjs.svg", type: "frontend" };
  }
  return null;
}

export {
  detectNext
};
