#!/bin/sh
JSON_STRING='{
  "authority":"'"${SSO_AUTH}"'",
  "frontSSO":"'"${SSO_UI}"'",
  "PREORDER_SERVICE":"'"${VUE_APP_PREORDER_SERVICE}"'",
  "REGISTRY_DATA_SERVICE":"'"${VUE_APP_REGISTRY_DATA_SERVICE}"'",
  "REDIRECT_SECTION":"'"${VUE_APP_REDIRECT_SECTION}"'",
  "isProd":"true",
  "isDebugMode":"'"${VUE_APP_DEBUG_MODE}"'",
  "HIDE_DISABLED_MENU_ITEMS":"'"${VUE_HIDE_DISABLED_MENU_ITEMS}"'"
}'

echo "$JSON_STRING" | tee ./app.config.json
exec "$@"
