# Run

> Serve a Run app on your domain, at the apex and on www.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://domains.docs.sypnia.com/connect/run/

For agents: Domains connect to Run: apex ALIAS to app edge address, www CNAME (Run redirects www→apex or --primary www), certificate validation CNAME, CAA for Amazon CA if none; certificate within minutes; subdomain gets CNAME; previews with wildcard *.preview.<domain> --previews.

`connect laespiga.co run:laespiga` writes:

| Record                                      | Value                                                                                    |
| ------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `laespiga.co ALIAS`                         | the app's edge address                                                                   |
| `www.laespiga.co CNAME`                     | `laespiga.co` (and Run redirects `www` to the apex, or the reverse with `--primary www`) |
| `_acme-challenge` or ACM validation `CNAME` | for the certificate                                                                      |
| `CAA`                                       | allows Amazon's certificate authority, if the zone has no `CAA` yet                      |

Run issues the certificate and starts serving the domain once validation passes, usually within a few minutes. A subdomain (`app.laespiga.co`) gets a `CNAME` instead of the `ALIAS`. A preview address per pull request can use a wildcard: `connect '*.preview.laespiga.co' run:laespiga --previews`.

See also [Addresses and domains](https://run.docs.sypnia.com/config/addresses-and-domains) in the Run docs.
