fix: wrong BASE_URL (+1 squashed commits)

Squashed commits:

[485c2bd] fix: wrong BASE_URL
This commit is contained in:
shugen002 2022-08-29 01:51:41 +08:00 committed by genteure
parent 13733ed3ce
commit 4472ad5d53
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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