mirror of
https://iceshrimp.dev/blueb/Chuckya-fe-standalone.git
synced 2026-01-11 13:33:21 -08:00
* Change how CDN_HOST is passed down to make assets build reproducible * Change webpacker/webpack configuration to dynamically load publicPath based on meta header * Fix embedded layout missing the cdn-host meta header
10 lines
202 B
JavaScript
10 lines
202 B
JavaScript
import ready from '../ready';
|
|
|
|
export let assetHost = '';
|
|
|
|
ready(() => {
|
|
const cdnHost = document.querySelector('meta[name=cdn-host]');
|
|
if (cdnHost) {
|
|
assetHost = cdnHost.content || '';
|
|
}
|
|
});
|