From 620d9076f8edb0554da78c0c2e618e8580e4e16a Mon Sep 17 00:00:00 2001 From: WorldSEnder Date: Sat, 3 Aug 2024 17:15:39 +0200 Subject: [PATCH] fix example serving (#3701) specifying an absolute URL as the public base is necessary since trunk 0.19 see also trunk-rs/trunk#668 --- ci/build-examples.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build-examples.sh b/ci/build-examples.sh index 2bc3f56b184..69a0029d14b 100755 --- a/ci/build-examples.sh +++ b/ci/build-examples.sh @@ -33,7 +33,7 @@ for path in examples/*; do export RUSTFLAGS="-Zshare-generics=n -Clto=thin $RUSTFLAGS" 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', # which isn't available in the browser.