> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Error Log When Publishing

## Article: Publishing Your Site

## Article Link: https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/overview/error-log-when-publishing.md

## Article Content:

# Error Log When Publishing

You can [publish your site](https://support.wix.com/en/article/wix-editor-publishing-your-site) at any time from the top toolbar of the editor. When you click **Publish**, Wix performs an automatic check on the site's code for any errors.
If errors are detected, Wix alerts you and provides the option to either return to the editor without publishing your site
or to publish your site with the errors.

> **Note:**
> Wix only reports code errors if there have been changes to the code since the last time the site was published. If no modifications were made to the code, Wix publishes your site without requiring any additional confirmation.

## Viewing the error log

<div style="text-align:center">

![image of popup with dev mode on](https://wixmp-833713b177cebf373f611808.wixmp.com/images/1ee0549eb4f062ecca3bf3b7e3395af3.png)

</div>

If developer mode is enabled when you publish your site, Wix provides details of the errors in your code.
You can then access the most recent `build.log` file to analyze where errors have been detected.
To do this, click on **View Error Log** in the publishing prompt. Later, open the `build.log` file directly in your
Wix editor under **Developer Tools** to review:

<img src="https://wixmp-833713b177cebf373f611808.wixmp.com/images/cf90631aba0dbbac6f080b516d61f59f.png" alt="image of latest build opening build.log file" style="max-width: 15vw" />

Note that the `build.log` file is only kept for 30 days. After 30 days, the status for Latest Build under **Developer Tools** will be `Awaiting publish`. Publishing your site generates a new `build.log` file.

<div style="text-align:center">

<img src="https://wixmp-833713b177cebf373f611808.wixmp.com/images/09352c1dcdb2a918cd23f149333b6edd.png" alt="image of latest build with an Awaiting publish message" style="max-width: 15vw" />

</div>

## What Wix checks

During the automatic check, Wix analyzes your code files and validates the syntax that may prevent the bundling of code files. For example, Wix checks [`no-undef`](https://eslint.org/docs/latest/rules/no-undef) and [`no-const-assign`](https://eslint.org/docs/latest/rules/no-const-assign) rules to flag the use of undeclared variables or if `const` variables were reassigned.

The files it checks are:

- Page files.
- [Web modules.](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/web-modules/about-web-modules.md)
- `.js` files, including [events.js](https://support.wix.com/en/article/velo-backend-events), [data.js](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/hooks/using-data-hooks/.md), [http-functions.js](https://dev.wix.com/docs/velo/velo-only-apis/wix-http-functions/introduction.md), and [routers.js](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/routers/about-routers.md#routing-code).

The files it does not check are:
- Certain service plugin files.