# Publishing

Put your app online at a Lyna address in about a minute, with a security review before it goes live, then update it with one click.

Put your app online so anyone can visit it. Publishing builds your app and puts it online at a Lyna address. Choose **Publish** in the top right of the editor.

The Publish menu open on the Website address step with the Lyna address and the Add custom domain option.

## What you can do

- Publish your app to a Lyna address and rename that address.
- Review the project name, visibility and security findings before you go live.
- Follow the build step by step, and read the build log if it fails.
- Update the live site with **Update** after each change.
- Share the address, or connect your own domain.

## Publish for the first time

1. ### Choose Publish

   In the top bar, choose **Publish**. The first step, **Website address**, shows the address your site will use. You can rename the address before you continue. Choose **Continue**.
2. ### Review

   **Ready to publish?** shows the **URL**, the **Project** name, the **Visibility** and a **Security** check. If the scan finds issues, choose **Show the findings** to read them, **Run again** to scan once more, **Deep scan** for a deeper check, or **Send all to AI** to have them fixed. Choose **Publish**.

   The Ready to publish step with the URL, project, visibility and the security scan result.
3. ### Wait about a minute

   Lyna runs five steps: **Reserve the address**, **Save your latest edits**, **Build the site**, **Upload the files** and **Put it online**. You can close the menu: publishing continues.
4. ### Your app is live

   **Your app is live!** Choose **View app** to open it, **Share** to post the link on X, LinkedIn or Reddit or copy it, or **Domain settings** to add your own domain. **Publish again** publishes once more.

## Update your site

After a change to your site, the button shows **Update**. Choose it to publish the latest version. While it works, the button shows **Publishing**. When the site is up to date, the button shows **Live**.

Only a change to your site counts. A change to your view in the editor, such as a frame height, a frame moved on the canvas, a guide, a layer name or a lock, writes nothing to your code, so a live site stays **Live**.

> [!NOTE]
>
> **Edits during a publish**
>
> Lyna builds from your saved project. Edits you make while a publish runs go out with the next update.

## If a publish fails

The button shows that the last publish failed. The menu names the step that failed, such as **The build failed**. Choose **View build log** to read the output, **Copy log** to share it, and **Try again** when you have fixed the cause. You can paste the log in the chat and ask the AI to fix the error.

Before a site goes online, Lyna checks its pages. A site that looks like a page collecting sign-in or payment details for another company is not published, and the publish window says why. If the check cannot run, try again in a moment. A page or script over 32 MB is too large to check: make it smaller, then publish again.

## Your Lyna address

Every published project gets its own address on a Lyna subdomain. Change it in **Settings > Project > Domains > Overview** under **Site address**. Rename it any time: the identifier link keeps working. See [Custom domains](/features/publish/custom-domains) to use your own domain.

## Take your site offline

Open **Settings > Project > Deployments** and use **Unpublish** at the bottom of the page, then confirm. Visitors see a not-found page until you publish again. Your project and its history stay as they are. See [Deployments](/features/publish/deployments).

## Plan availability

|                           | Free | Pro |
| ------------------------- | ---- | --- |
| Publish to a Lyna address | Yes  | Yes |
| Custom domain             | No   | Yes |
| Hide the Lyna badge       | No   | Yes |
| Analytics                 | No   | Yes |

The number and size of published sites depend on your plan. See [Plans and credits](/introduction/plans-and-credits).

## FAQ

### Who can publish?

Editors, admins and the owner of the project. Viewers cannot.

### What does the security check look at?

Lyna scans your code for leaked secrets, risky code and vulnerable packages, and checks row level security on your database. See [Security scan](/features/test-and-debug/security-scan).

### Does publishing change my project?

No. Publishing builds a copy of your app and serves it. Your project, chat and versions do not change.

### Where do my site's pictures and videos load from?

From your site itself. When you publish, Lyna copies the pictures, videos and public files your pages show into your site, so they load fast and keep loading even when the editor is busy. The copies count toward your plan's storage, not toward the size of your site. A file that is still private stays private: the publish shows a warning with its switch, and you decide.

## Related

- [Custom domains](/features/publish/custom-domains): Use a domain you own.
- [SEO](/features/publish/seo): Titles, descriptions and social images.
- [Deployments](/features/publish/deployments): Every publish and its logs.
- [Launch on a custom domain](/tips-and-tricks/launch-on-a-custom-domain): The whole path, step by step.
