Duolith docs

Errors E0500 to E0599

E0587 Unknown host

Message web.host names no host duolith build knows: host

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

web: host: in duolith.yaml asks the web build to also write a host's own output beside the site (WP18). vercel writes Vercel's Build Output API folder, .vercel/output, with the Content-Security-Policy, security and cache headers that _headers gives Netlify and Cloudflare Pages, which Vercel does not read. Any other name is an error, so a mistyped host never ships a site without its headers.

How to fix it

Write host: vercel, or leave host out: _headers serves Netlify and Cloudflare Pages as it is.

In a terminal

duolith explain E0587