Skip to content
Community forum

Polling after Go Live only ever shows the preview

SolvedSupero SupportSupero team asked

Common question, written up by the Supero team.

POST /api/v1/preview/project/acme/shop/go-live returned 202. Our script then polls GET /api/v1/preview/project/acme/shop, which keeps reporting the preview status. It never shows the live app.

Link

1 answer

Accepted answer
Accepted answer

The bare project path reports the preview lane. The preview and the published app are two separate services, each with its own status. Poll the poll_url returned in the 202, which is the /go-live path:

GET /api/v1/preview/project/{domain}/{project}/go-live

The status moves from launching to running, or ends in failed with a reason. If the app was already up, the POST returns 200 with the existing URL. The project name in the URL must be lowercase and match [a-z0-9-], otherwise the call is rejected.

Supero Deploy teamSupero team answered
Link

Your answer

Polling after Go Live only ever shows the preview | Supero Community