From 4472ad5d53efcb00e13618fb0d898ea32e9558e6 Mon Sep 17 00:00:00 2001 From: shugen002 Date: Mon, 29 Aug 2022 01:51:41 +0800 Subject: [PATCH] fix: wrong BASE_URL (+1 squashed commits) Squashed commits: [485c2bd] fix: wrong BASE_URL --- webui/build.ps1 | 2 +- webui/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/build.ps1 b/webui/build.ps1 index 36e2e74..10d14a3 100644 --- a/webui/build.ps1 +++ b/webui/build.ps1 @@ -1,6 +1,6 @@ Set-PSDebug -Trace 1 Push-Location "$PSScriptRoot/source" -$env:BASE_URL = "/ui/" +$env:BASE_URL = "./" $env:VITE_EMBEDDED_BUILD = "true" (npm ci) -and (npx vite build) Remove-Item -Recurse -ErrorAction SilentlyContinue ../../BililiveRecorder.Web/embeded/ui diff --git a/webui/build.sh b/webui/build.sh index 484c472..e56d5b3 100755 --- a/webui/build.sh +++ b/webui/build.sh @@ -2,7 +2,7 @@ set -ex SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )"; pushd "$SCRIPT_DIR/source" -export BASE_URL="/ui/" +export BASE_URL="./" export VITE_EMBEDDED_BUILD="true" npm ci && npx vite build rm -R ../../BililiveRecorder.Web/embeded/ui 2>/dev/null || true