Pudu programming language
Menu
API reference

Std.Site.targetFromEnvironment

1 declaration

fn

targetFromEnvironment: Std.Site.Target

The host the build is running on, read from the variables each host's build environment sets, or Static when none of them is present.

The same program then builds correctly wherever it runs: on a laptop it writes a plain directory, and in the host's own build it writes what that host reads.

Back to Std.SiteSearch related declarations