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.
What the message tells you
Section titled “What the message tells you”| Message | What it means | What to do |
|---|---|---|
| the preview isn’t ready yet | The 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 hiccup | The publish service didn’t answer in time. | Give it a minute and click Publish again. |
| the production build hit an error | Something in the code breaks the production build. | Ask the AI to fix it (below). |
Having the AI fix a build error
Section titled “Having the AI fix a build error”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.
Things worth knowing
Section titled “Things worth knowing”- 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.