do not fail if SPIFFWORKFLOW_FRONTEND_RUNTIME_CONFIG is missing

This commit is contained in:
burnettk 2023-02-07 22:06:47 -05:00
parent fb94d5c77a
commit 9cd234a41a
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ trap 'error_handler ${LINENO} $?' ERR
set -o errtrace -o errexit -o nounset -o pipefail
# sort of like https://lithic.tech/blog/2020-05/react-dynamic-config, but without golang
react_configs=$(env | grep -E "^SPIFFWORKFLOW_FRONTEND_RUNTIME_CONFIG_")
react_configs=$(env | grep -E "^SPIFFWORKFLOW_FRONTEND_RUNTIME_CONFIG_" || echo '')
if [[ -n "$react_configs" ]]; then
index_html_file="./build/index.html"
if [[ ! -f "$index_html_file" ]]; then