import {
  require_lib
} from "./chunk-QQAUZGVG.mjs";
import {
  __toESM
} from "./chunk-4OMBB3R6.mjs";

// src/detectors/next.ts
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
};
