@nx/next
Version:
13 lines (12 loc) • 405 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.findNextConfigPath = findNextConfigPath;
function findNextConfigPath(tree, projectRoot) {
const validExtensions = ['js', 'cjs'];
for (const extension of validExtensions) {
const path = `${projectRoot}/next.config.${extension}`;
if (tree.exists(path)) {
return path;
}
}
}