Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(deploy): double-slash bug in url

justin0a8c945cdf34
diff --git a/deploy/kaneo-entrypoint.sh b/deploy/kaneo-entrypoint.sh
index 232cac608..4d519c808 100644
--- a/deploy/kaneo-entrypoint.sh
+++ b/deploy/kaneo-entrypoint.sh
@@ -22,8 +22,9 @@ trap cleanup EXIT INT TERM
# Derive KANEO_API_URL from KANEO_CLIENT_URL if not explicitly set
client_url_trimmed="$(printf '%s' "${KANEO_CLIENT_URL:-}" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')"
-if [ -z "${KANEO_API_URL:-}" ] && [ -n "$client_url_trimmed" ]; then
- export KANEO_API_URL="${client_url_trimmed}/api"
+client_url="${client_url_trimmed%/}"
+if [ -z "${KANEO_API_URL:-}" ] && [ -n "$client_url" ]; then
+ export KANEO_API_URL="${client_url}/api"
echo "KANEO_API_URL not set — derived from KANEO_CLIENT_URL: $KANEO_API_URL"
fi