# Troubleshooting

Source: https://layerwise.app/docs/reference/troubleshooting

Recover from common problems in the Layerwise workflow.

Keep any displayed error message when diagnosing a problem or contacting support.

## Preview does not load [#preview-does-not-load]

1. Wait for project workspace setup to complete, then select **Refresh preview** in the preview header.
2. Open [Logs](/docs/deploy/logs) and set **Environment** to **Local** to inspect backend errors. You can also open **Preview actions** and choose **Show console** for preview output.
3. Return to the team project list, reopen the project, and wait for its local workspace to become ready.

Do not publish until the preview is working; publishing requires the local workspace.

## Built-in editor cannot edit a file [#built-in-editor-cannot-edit-a-file]

The built-in editor only edits text files smaller than 10 MB. Binary files are previewed instead. Use **Open in** to edit other files in an installed editor or file manager.

## GitHub asks you to connect an account [#github-asks-you-to-connect-an-account]

Open the user menu and choose **Account**, then select **Connect GitHub**. Then return to the project and open **Settings** → **GitHub** again. The project must also have a ready local workspace.

## Publish is unavailable [#publish-is-unavailable]

Return to the local preview and wait for workspace setup to finish. Publishing is disabled while another publish is running. **Up to date** means the current local source already matches the last published revision.

For a failed deployment, open **Deployments** and hover the release's **Failed** status to see the error. Fix the problem in the local preview, then publish again.

## Custom domain does not validate [#custom-domain-does-not-validate]

Check the DNS record shown on the **Domains** page:

- Use CNAME for a subdomain such as `app.example.com`.
- Use ALIAS, ANAME, or CNAME flattening for an apex/root domain when your provider supports it.

Keep the **Domains** page open to inspect validation status and required records. DNS changes can take time to propagate.
