Configuring an optional Plug.Static route with Conform+Distillery

Hello all!

We have a small application that serves artifacts from a static plug during development, but the plug is not enabled in production. I’m trying to see if there’s a convenient way to enable/disable the static plug via configuration using Conform+Distillery.

I’ve put together a simple application that outlines the setup of our app and the steps I’ve taken to reproduce the issue:

Any insight would be much appreciated.

Cheers,
Nick

FYI, I am unable to access your link.

Whoops. Permissions should be fixed now. Please try again.

Your config/prod.exs doesn’t seem to list a path for your static plug to use.

Yes, that is intentional. I’m trying to use Conform to configure that value at runtime (not compile time) via the *.conf files.