fix example serving (#3701)

specifying an absolute URL as the public base is necessary since trunk 0.19
see also trunk-rs/trunk#668
This commit is contained in:
WorldSEnder 2024-08-03 17:15:39 +02:00 committed by GitHub
parent b8d3e21ca0
commit 620d9076f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ for path in examples/*; do
export RUSTFLAGS="-Zshare-generics=n -Clto=thin $RUSTFLAGS" export RUSTFLAGS="-Zshare-generics=n -Clto=thin $RUSTFLAGS"
fi fi
trunk build --release --dist "$dist_dir" --public-url "$PUBLIC_URL_PREFIX$example" trunk build --release --dist "$dist_dir" --public-url "$PUBLIC_URL_PREFIX/$example"
# check that there are no undefined symbols. Those generate an import .. from 'env', # check that there are no undefined symbols. Those generate an import .. from 'env',
# which isn't available in the browser. # which isn't available in the browser.