12. Troubleshooting/DevOps Pipelines

CI/CD & Edge Deployments

Resolve orchestration breakdowns during the deployment lifecycle, from GitHub workflow dispatch errors to OpenNext compilation crashes.

DEPLOYMENT ORCHESTRATION
Status: FAILED
Reading Pipeline Telemetry

The GN-Apex Control Plane handles orchestration, but the actual compilation occurs on GitHub Actions. Diagnostics require checking the runner logs.

SRE Deployment Architecture

GitHub Action Fails to Trigger

When you click Deploy in GN-Apex, the system dispatches a workflow to your connected GitHub repository. If the deployment remains stuck on PENDING:

AUTHORIZATION

Missing App Installation

Ensure the GN-Apex GitHub App is installed on the target repository with Actions Read/Write permissions.

WORKFLOW FILE

Missing nexus-deploy.yml

The system requires the deployment YAML file in .github/workflows. Run 'npx nexus init' locally and push to main.

Build Failures (Next.js & OpenNext)

If the status updates to FAILED, open the GitHub Actions tab in your repository to read the terminal output:

  • Type Checking Errors (tsc):If you modified the schema but didn't run npx nexus types, your Next.js build will fail due to TypeScript interface mismatches.
  • Wrangler Asset Limit: Cloudflare Workers have a 25MB script size limit. Ensure heavy images/videos are uploaded to the /media storage vault, not committed directly to the /public Git repository.
1Failed to compile.
2./app/page.tsx:14:23
3Type error: Property 'featured_image' does not exist on type 'HomePage'.
4 
5> Fix: Run 'npx nexus pull && npx nexus types' locally and commit the result.

Executing Emergency Rollbacks

Zero-Downtime Rollbacks
If a bad deployment breaks the live site, navigate to Project Settings → Deployments and click Rollback on the previous successful release. The Control Plane instantly instructs Cloudflare to route traffic back to the older worker bundle in milliseconds.