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.
Polling after Go Live only ever shows the preview
Common question, written up by the Supero team.
Linkrev 1
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-liveThe 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.
Linkrev 1
Your answer
Know the answer? Sign in to post it. It takes an email address and a 6-digit code.
Sign in to answer