Skip to main content
Use deploy for a hosted Preview. Publish only when the reviewed change is on the site’s Production source Branch and ready for public visitors. Existing sites use main.

Deploy a Preview

fimo deploy works on the current Branch. It commits pending changes, pushes the Branch, updates its Preview, and returns the Fimo Studio URL. Add --description to say why you made the change. It becomes the body of the commit, and teammates and agents that later edit the same files read it, for example when their work conflicts with yours:
Deploy uses the description only when it has pending changes to commit. If you commit yourself, write the reason in your own commit message. By default, deploy waits for the sandbox to answer before returning the Studio URL. Use --no-wait only when you deliberately want to return after sync without that readiness check. Use your local dev server for everyday editing. Deploy at review points when you need a hosted link.

When a deploy fails

The error names the step that failed: pulling the Branch into the Preview sandbox, installing dependencies, starting the dev server, or the final readiness check. When the sandbox produced output, the error also includes the exit code and the last lines of that output, with credential-shaped values redacted, so you can fix the cause and run fimo deploy again. When the final readiness check fails, the message names what the check last saw, such as a dev server that stopped or an optimized dependency the Preview route was still delivering. With --json, read error.details.failure_code, error.details.phase, error.details.exit_code, and error.details.log_tail. fimo logs reads the Preview that is currently serving. A deploy that fails while preparing a replacement sandbox discards that sandbox, so the output on the error is the record of that attempt. A failed --publish still returns its publication ID. Run fimo publish logs <id> for the build output. A failed publication never replaces the version that is already live. Fimo also tells the people responsible: whoever published and the site’s managers get an email that opens Publish, unless they turned off Publication failures, and Publish in Studio shows Latest update failed until a newer publication finishes. See Publish in Studio.
Run fimo preview url to retrieve the hosted deployment without another commit or push. It waits while the current generation builds.

Publish production

fimo deploy --publish pushes the configured Production source Branch and publishes it in one command. It does not run from another Branch. To publish the revision already on the Fimo remote without another deploy:
A label helps you recognize the publication later. It does not change what gets published.
If you are upgrading from Fimo 0.15, remove --version. Fimo now assigns each publication a stable ID; use --label for an optional human-readable name.
Publishing makes the site public. A plain fimo deploy remains a site-member Preview.

Redirects and response headers

Configure hosting rules in .fimo/config.json, not provider deployment files. The hosting object supports redirects, headers, rewrites, cleanUrls, and trailingSlash. When a project declares no runtime.framework and no hosting rules, Fimo serves its index.html for any address that matches no file, so deep links into a browser-routed app work. A request for a missing React Router .data file still returns a 404. A project that declares a framework, or its own hosting.rewrites, gets no fallback from Fimo.
Redirects default to temporary. Use "permanent": true only for lasting moves; browsers cache it. An explicit statusCode of 301, 302, 307, or 308 overrides permanent. Use a host condition to apply a rule to a particular hostname. For example, this redirects every www URL to the apex domain while preserving the path and query string:
Use /:path(.*) when the rule must include the homepage / as well as nested paths. Fimo preserves your source pattern as written; /:path* does not include the bare / on this hosting path. Connect both hostnames to the project before testing. A host condition matches the hostname the visitor requested, including a connected custom domain. Use missing instead of has to match requests that do not satisfy the condition. Host conditions also work on rewrites and response headers. Run fimo validate before deploying. Rules apply only to deployed sites; test them on a hosted Preview or published site, not a local dev server.
Legacy static hosting ignores these rules. Contact support if they have no effect on your deployed site.

Markdown for AI agents

A published site answers AI agents with Markdown when they ask for it, on its custom domains and on a <name>.fimo.site address. An address of the form <name>.apps.fimo.site serves HTML only. An agent can ask in two ways:
  • https://example.com/pricing.md
  • https://example.com/pricing with an Accept: text/markdown header
Fimo converts the page your site serves: its <main> content, or the whole body when there is none, with the title, description, and canonical URL as front matter. Navigation, footers, forms, and scripts are left out. A browser asking for the page itself gets HTML, and the Markdown Fimo generates names the HTML page as its canonical URL, so search engines keep indexing the page itself. A page marked noindex passes that mark on to its Markdown. The Markdown keeps your page’s response headers, such as Content-Signal and CORS headers, except its cookies and the headers that describe the HTML itself, such as ETag. Very large or very deeply nested pages, and server-rendered pages still waiting for a part they stream in later (such as a React Suspense boundary that is still loading), are sent as your site serves them. Your site answers first. When it serves something at that address other than a missing page or an HTML page, such as its own Markdown, a redirect, or an error, the agent gets that response unchanged. To serve your own Markdown for a page, publish it at the page’s .md address, such as /pricing.md for /pricing or /index.md for the home page, or link a file on the same site from the page with <link rel="alternate" type="text/markdown" href="...">. A linked file that names a language with hreflang is used only when it matches the page’s lang. Fimo looks for your Markdown in this order, and generates its own only when it finds none:
  • Accept: text/markdown on the page: the linked file, then the file at the page’s .md address.
  • The .md address: the file published there, then the linked file.
Fimo converts only the words already in the HTML your site serves. When a page builds its content with JavaScript in the browser, an agent gets just the text of that HTML, such as a loading message, or what your site serves at that address when the HTML holds no text at all. Prerender or server-render the page to make it readable by agents. /llms.txt stays your site’s own file. Fimo does not write one for you.

When a site is unavailable

A site that has been unpublished or taken offline can show “This site is unavailable” at its Fimo address. If you own the site, open Fimo to check its publication status. Restoring permission to publish does not put the site back online automatically; publish again when it is ready. Republishing restores the site at the same Fimo address, including a customized default address.

CLI and Studio

The CLI and Studio are two ways to publish the same site:
  • Use the CLI while working in the repository. It can push local changes and publish in one command.
  • Use Publish in Studio when the latest work is already saved and you want a visual publish action.
Do not run both procedures for the same release.

Continue the launch

Launch checklist

Check readiness, URL, live site, and recovery.

Custom domains

Choose the address visitors will use.

Analytics

Review traffic after publication.