From 129ec01cd06c1342032ed8b77c60bf9832ed6c93 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Fri, 13 Jun 2025 07:28:53 +0100 Subject: [PATCH] FE: Specify public_cdn_path in new index.html (#106662) --- pkg/services/frontend/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/services/frontend/index.html b/pkg/services/frontend/index.html index c51574aa598..b5e4c469798 100644 --- a/pkg/services/frontend/index.html +++ b/pkg/services/frontend/index.html @@ -53,6 +53,10 @@ window.nonce = '[[.Nonce]]'; [[end]] + [[if .Assets.ContentDeliveryURL]] + window.public_cdn_path = '[[.Assets.ContentDeliveryURL]]public/build/'; + [[end]] + window.__grafana_load_failed = function(...args) { console.error('Failed to load Grafana', ...args); };