This commit is contained in:
CanbiZ 2025-10-18 12:12:41 +02:00
parent d4a545a584
commit 55d0596b53
2 changed files with 8 additions and 0 deletions

View File

@ -50,6 +50,11 @@ function update_script() {
sed -i "s|\"version\": \"0.0.0\"|\"version\": \"$RELEASE\"|" backend/package.json
sed -i "s|\"version\": \"0.0.0\"|\"version\": \"$RELEASE\"|" frontend/package.json
cd ./frontend || exit
# Remove yarn.lock to force fresh dependency resolution
rm -f yarn.lock
# Replace node-sass with sass (Dart Sass) for Node.js compatibility
$STD yarn remove node-sass 2>/dev/null || true
$STD yarn add -D sass
$STD yarn install --network-timeout 600000
$STD yarn build
)

View File

@ -116,6 +116,9 @@ msg_ok "Set up Environment"
msg_info "Building Frontend"
cd ./frontend
export NODE_OPTIONS="--openssl-legacy-provider"
rm -f yarn.lock
$STD yarn remove node-sass 2>/dev/null || true
$STD yarn add -D sass
$STD yarn install --network-timeout 600000
$STD yarn build
cp -r dist/* /app/frontend