]> source.dussan.org Git - gitea.git/commit
Fix webpack chunk loading with STATIC_URL_PREFIX (#11526)
authorsilverwind <me@silverwind.io>
Wed, 20 May 2020 22:33:31 +0000 (00:33 +0200)
committerGitHub <noreply@github.com>
Wed, 20 May 2020 22:33:31 +0000 (23:33 +0100)
commitb797b76abd13beba348415bdb81c7d3593bb01f9
treeeddd72425980dd691ee65823b4f92fe21836e73b
parentc7c61778bcbda0f6bda7a6e942694df2593cc102
Fix webpack chunk loading with STATIC_URL_PREFIX (#11526)

Previously, we had only set __webpack_public_path__ to a path which
caused webpack chunks to be loaded from the current origin which is
incorrect when STATIC_URL_PREFIX points to another origin.

This should fix the issue curretnly seen on gitea.com.

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
web_src/js/publicpath.js