Skip to content

Fixing publish failures

Publishing builds a production version of your site. Occasionally something that worked in the preview trips up that stricter build. When a publish fails, the chat shows a Publish failed message with the error text and the next step for that kind of failure.

MessageWhat it meansWhat to do
the preview isn’t ready yetThe preview was still starting when you published.Wait a few seconds, or click Reload preview in the toolbar, then Publish again. No code change needed.
a temporary network hiccupThe publish service didn’t answer in time.Give it a minute and click Publish again.
the production build hit an errorSomething in the code breaks the production build.Ask the AI to fix it (below).

Ask in chat, and include the error text from the Publish failed message, for example “publishing fails with this error, fix it: …”.

The AI can also run the publish itself: “publish the site and fix whatever breaks the build”. It runs the same build the Publish button does, reads the failure, changes the code and tries again. If it gets through, the site is live.

Then hit Publish again if the AI didn’t publish for you.

  • Ask for the smallest fix that unblocks the build, and say if content or styling must stay as they are.
  • If the same error keeps coming back, paste the full error text into chat rather than a summary, so the AI works from the real message.
  • A broken preview (not a failed publish) has its own repair button — see Fixing errors.