cubby check
Run pre-deploy validations to catch issues before deploying. This command runs the same checks that happen duringcubby deploy, but locally.
Usage
What It Checks
- cubby.yaml exists - Ensures this is a Cubby project
- package.json valid - JSON is parseable, has
buildscript - Next.js config - Checks for
output: "standalone"(required for Docker) - Prisma schema - Validates schema if Prisma is used
- Build test - Runs
npm run buildto catch compile errors
Output
All Checks Pass
Check Failures
When to Use
Runcubby check before deploying to:
- Catch build errors locally (faster feedback)
- Validate configuration before uploading
- Debug deployment failures
Check Details
cubby.yaml
Every Cubby app needs acubby.yaml file. If missing:
package.json
Must have abuild script:
Next.js Standalone
Yournext.config.ts must include:
Prisma Validation
If your project uses Prisma, the schema is validated:- Invalid relation syntax
- Missing required fields
- Type mismatches
Build Test
The full build is run:Environment Variables
If your project uses Prisma,cubby check provides a dummy DATABASE_URL for validation. This allows the build to succeed without a real database connection.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | All checks passed |
| 1 | One or more checks failed |
Related Commands
cubby deploy- Deploy after checks passcubby dev- Test locally before checking