fix: Fix missing cloud services URL when env variable is empty (#25838)

When `APPSMITH_CLOUD_SERVICES_BASE_URL` is an empty string, Spring's
interpolation in `application.properties` doesn't take the default
value. This PR sets up the `entrypoint.sh` script so that it'll `unset`
this env variable, when it's empty.
This commit is contained in:
Shrikant Sharat Kandula 2023-07-31 13:21:57 +05:30 committed by GitHub
parent f190c0421c
commit af37843df3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,6 +138,10 @@ unset_unused_variables() {
unset APPSMITH_RECAPTCHA_SECRET_KEY
unset APPSMITH_RECAPTCHA_ENABLED
fi
if [[ -z "${APPSMITH_CLOUD_SERVICES_BASE_URL-}" ]]; then
unset APPSMITH_CLOUD_SERVICES_BASE_URL
fi
}
check_mongodb_uri() {