dcloud deploy hosting detect-nextjsCheck whether a repository branch is a Next.js app the platform can build and serve on pooled hosting
IAM git:PullRepositoryRead
Reads package.json and the lockfiles at the branch (a read of source, recorded like a clone). next 15 or newer builds; older is too-old; no next is not-nextjs.
Synopsis
dcloud deploy hosting detect-nextjs --repository-id repositoryId [flags]Flags
--repository-idRequiredstring
The repository to look at
--branchOptionalstring
The branch; default the repository’s default branch
Constraints: 1-255 chars
--root-dirOptionalstring
Folder of the app in the repository; default the root (.)
Constraints: max 255 chars, /^[A-Za-z0-9._/-]*$/
Example
dcloud deploy hosting detect-nextjs --repository-id exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.