Skip to content

Commit

Permalink
Merge pull request #12942 from rtibbles/no_auto_kolibri
Browse files Browse the repository at this point in the history
Don't use 'auto' public paths to resolve resources.
  • Loading branch information
rtibbles authored Dec 13, 2024
2 parents 025d085 + 3feeb9e commit f994e5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kolibri/core/webpack/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f994e5c

Please sign in to comment.