Frontends

Redeploy frontend using latest uploaded artifact

Changed on

Starts a new frontend workflow using the latest stored artifact. A deployment that starts immediately returns status: provisioning, then transitions to active, degraded, or failed. An overlapping deployment preserves the frontend's current status, is exposed through pending_deployment_id, and supersedes any older queued deployment. The previous runtime and its published static assets remain available during provisioning, and a failed redeploy restores the regional runtimes to that build and keeps it serving while the attempted deployment is recorded as failed.

post/projects/{id}/frontends/{frontendId}/redeploy

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    • HTTP bearer
    • or HTTP bearer

Path parameters

id, string uuid required

Project ID

frontendId, string uuid required

Frontend ID

Response

Frontend redeploy started or queued

Frontend required
variable_scope, 'all' | 'shared' | 'scoped'

All preserves access to all project variables. Shared includes the project frontend shared-variable list. Scoped includes only explicitly declared variables in builds and runtime. Omission preserves the stored selection.

declared_variables, string[]

Names selected when variable_scope is scoped. Missing declared values reject deployment. Omission preserves the stored list; an empty list clears it.

id, string uuid required
project_id, string uuid required
name, string required
framework, 'nextjs' required
app_root, string

Optional relative POSIX path from the uploaded archive root to the Next.js app that is deployed.

status, 'provisioning' | 'active' | 'degraded' | 'failed' | 'deleting' required

Frontend lifecycle status. degraded means the regional runtime remains available but edge synchronization exhausted its immediate retries; Volcano retries edge recovery without rebuilding the frontend, and stops once a new deployment is queued or the retry budget runs out, leaving the frontend degraded until the next redeploy. A redeploy that fails over a serving frontend stays active on the previous deployment, so failed means no deployment is serving.

provisioning_started_at, string date-time

Timestamp when the current provisioning phase started

deployed_regions, string[] required
current_deployment_id, string uuid

Identifier of the latest frontend deployment operation

pending_deployment_id, string uuid

Newest queued deployment that will run after the current operation

site_url, string
custom_domain, string

Active custom domain hostname when configured

custom_domain_status, 'pending_verification' | 'provisioning' | 'active' | 'detaching' | 'failed' | 'deleted'

Current custom domain lifecycle status

function_routes, FrontendFunctionRoute[] required

Paths on this frontend that forward to a public function, ordered from most to least specific. Anyone who can load the frontend can reach the target function at these paths without a credential.

frontend_routes, FrontendRoute[] required

Paths on this frontend served by another frontend in the project, ordered from most to least specific. Function and Frontend routes share one path namespace and the 64-route limit.

last_deployed_at, string date-time

Recorded completion time of the most recent deploy or redeploy with status active. Omitted when no such deployment has a recorded completion time. Site traffic, pending deployments, degraded deployments, failed deployments, and deletion do not change this value.

last_invoked_at, string date-time
created_at, string date-time required
updated_at, string date-time required

Changes