From b2a94274d70334f039b51b7967ef26a8ffe3c344 Mon Sep 17 00:00:00 2001 From: Rostislav Dugin Date: Mon, 2 Feb 2026 20:44:52 +0300 Subject: [PATCH] FIX (script): Fix script creation in playground head x2 --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a7dd132..92a8305 100644 --- a/Dockerfile +++ b/Dockerfile @@ -272,10 +272,13 @@ window.__RUNTIME_CONFIG__ = { }; JSEOF -# Inject analytics script if provided +# Inject analytics script if provided (only if not already injected) if [ -n "\${ANALYTICS_SCRIPT:-}" ]; then - echo "Injecting analytics script..." - sed -i "s## \${ANALYTICS_SCRIPT}"$'\n'" #" /app/ui/build/index.html + if ! grep -q "rybbit.databasus.com" /app/ui/build/index.html 2>/dev/null; then + echo "Injecting analytics script..." + sed -i "s## \${ANALYTICS_SCRIPT}\\ + #" /app/ui/build/index.html + fi fi # Ensure proper ownership of data directory