Duolith docs

Errors E0500 to E0599

E0589 Build-time data setting that cannot be used

Message build.data problem

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

Why

build: data: in duolith.yaml says where build-time loaders may fetch from (origins: whole https sites such as https://api.example.com, or http on this machine: localhost, 127.0.0.1 or [::1], with no path) and how long each may take (deadline: whole seconds from 1 to 300, 10 when left out). Any other key, or a value the build would read differently from what was meant, stops the build.

How to fix it

Write build: with data: origins: [https://api.example.com] and, if needed, deadline: 30.

In a terminal

duolith explain E0589