### Provide environment information - ### Describe the bug When using next.config.mjs and next as a devDependency. ### Reproduction repo - ### To reproduce - ### Additional information _No response_ <sub>[TRI-1295](https://linear.app/triggerdotdev/issue/TRI-1295/cli-init-fails-to-detect-nextjs-project)</sub>