Export a config function to pick up env vars when called