Find out what visitors are receiving
Open the platform HTTPS address in a fresh browser session and request both the home page and a changed asset. Then open Deploy and compare the serving release with the latest publication attempt. The editable project, the newest build attempt and the files serving HTTP can represent three different versions.
A candidate can fail because its build command exits unsuccessfully or its selected output directory lacks index.html. In either case the static worker keeps the active release serving. If the previous title and assets still work, fix the failed candidate in source and publish again. A rollback is useful when the bad version actually became active.
Switch back to the previous published files
- Open Deploy on the running Static site or Built frontend deployment. Identify the serving release and the previous release. The Roll back action is available when a previous version exists.
- Select Roll back, then refresh Deploy and check which release is serving. Open the HTTPS address and request a route or asset that was broken in the bad release.
- Check Files or your Git branch. Rollback switches the served release and retains your writable project. Fix the regression there before the next publish, or that publish can reintroduce it.
Check the build output before republishing
For the frontend example, the build reads the source HTML, substitutes a title, and writes dist/index.html. Open Variables and check that MAIN_FILE names that output index. For a framework that writes to a different directory, point it to that directory’s index. Keep the lockfile alongside the package manifest for the default npm build.
A working home page with missing styles often means the HTML references a file at the wrong URL. Inspect the exact asset path in the browser’s network panel. Its path should be relative to the published root. For a client-side router, test a direct visit to a nested page as well as a click from the home page. Use STATIC_SPA=1 when the frontend must handle that route.
Rehearse recovery on a test site
On a separate test deployment, publish a first revision with a recognizable title. Change that title and publish a second working release. Roll back and confirm that the first title appears while Files still contains the second title. This takes the guesswork out of recovery when a real visitor reports a regression.
Record the known-good commit in your own release notes when using GitHub deploys. If there is no previous published release, rebuild from that revision. Start with website deployment setup for the first publication.