dcloud deploy hosting detect-nextjs

Check 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-idRequired

    string

    The repository to look at

  • --branchOptional

    string

    The branch; default the repository’s default branch

    Constraints: 1-255 chars

  • --root-dirOptional

    string

    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 example

Generated from the API description, the same one the API checks requests against and the CLI is built from.