Fix webpack chunk loading with STATIC_URL_PREFIX (#11526)
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 <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>
Co-authored-by: Lauris BH <f3041c4c693c07149804ea655e75ee8bb856bd26@nix.lv>
vdbt/gitea,lafriks/gitea,sapk-fork/gitea,cez81/gitea,vCaesar/gitea,go-gitea/gitea,sapk-fork/gitea,go-gitea/gitea,lafriks/gitea,lafriks/gitea,cez81/gitea,vdbt/gitea,go-gitea/gitea,sapk-fork/gitea,cez81/gitea,sapk-fork/gitea,vCaesar/gitea