From 3feeb9ef3b5d072440551f891c673e118d3c0cd2 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Thu, 12 Dec 2024 11:39:32 -0800 Subject: [PATCH] Don't use 'auto' public paths to resolve resources. --- kolibri/core/webpack/hooks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kolibri/core/webpack/hooks.py b/kolibri/core/webpack/hooks.py index a16efb5da18..b313f3e34eb 100644 --- a/kolibri/core/webpack/hooks.py +++ b/kolibri/core/webpack/hooks.py @@ -123,6 +123,8 @@ def bundle(self): if getattr(settings, "DEVELOPER_MODE", False): try: f["url"] = f["publicPath"] + if f["url"].startswith("auto"): + raise KeyError except KeyError: f["url"] = staticfiles_storage.url(relpath) else: