Skip to content

Astro

Astro produces ultra-light static sites. The folder you upload is called dist.

  1. Open a terminal in the project folder.

  2. Install and build:

    Terminal window
    npm install
    npm run build
  3. A dist folder appears. Upload it to Bailey.

Astro generates correct paths for a site served at the root of a domain (which is your Bailey subdomain), so usually there’s nothing to set.

It’s still worth putting your address in astro.config.mjs (useful for the sitemap and absolute links):

astro.config.mjs
export default defineConfig({
site: 'https://my-address.trybailey.app',
});

Do not add a base option unless your site is served from a sub-folder, which isn’t the case on Bailey. → Why your site looks broken

Hosted on Bailey