How do I enable HTTP basic authentication for some routes/domains

In the UI there is the ability to add basic authentication for an entire environment. But I would like to add it to only certain routes our domains. Is this possible?

Hi @soltz. The built-in basic auth support is indeed environment-wide only. It’s intended primarily to hide dev environments from the public and limit them to just you and customers previewing the site. If you want to restrict access to just certain paths, that is better done in your application directly.