#!/bin/sh

echo '{}' | jq '. | .portalId=env.PORTAL_ID | .apiUrl=env.API_URL | .middlewareUrl=env.MIDDLEWARE_URL | with_entries( select( .value != null and .value != "" ) )' >/usr/share/nginx/html/$PREFIX/picker-config.json
