UNPKG

@nx/next

Version:

The Next.js plugin for Nx contains executors and generators for managing Next.js applications and libraries within an Nx workspace. It provides: - Scaffolding for creating, building, serving, linting, and testing Next.js applications. - Integration wit

13 lines (12 loc) 405 B
"use strict"; 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; } } }