Depending of the configuration, Alkane can panics when you resolve a site name:
- site_directory_template: "%fqdn%" -> always safe
- site_directory_template: "%domain%.%tld%/%subdomain%" -> can panic
If a template refers to the domain parts, and you invoke the HTTP API with something not looking like a domain name, like foo (ie something without dot, or only one), the ful server will crash. And it's not Erlang where it's only a process and it doesn't matter, ready for next requests, it's a final crash, game over.
It also panics with the CLI, but that's not an issue, as we can go on anyway, and it provides a correct reason:
/home/dereckson ] alkane deploy foo thread 'main' panicked at 'Can't get site path.', src/actions.rs:46:10 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace zsh: abort (core dumped) alkane deploy foo