🔧 fix: update spa.html handling to ensure symlink removal and prevent errors

This commit is contained in:
2025-10-30 09:36:53 +00:00
parent 4893d925c5
commit ae39987c7d
2 changed files with 2 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ jobs:
# sed -i s/__TIMESTAMP__/$stamp/g frontend/serviceworker.js
# cat frontend/serviceworker.js
test -d api/templates && test -f api/templates/spa.html && rm api/templates/spa.html
test -d api/templates && test -L api/templates/spa.html && rm api/templates/spa.html || test -d api/templates && test -f api/templates/spa.html && rm api/templates/spa.html
test -d api/templates && cp frontend/spa.html api/templates/spa.html
cp frontend/spa.html api/templates/spa.html
echo ______ frontend/spa.html ______

1
api/templates/spa.html Symbolic link
View File

@@ -0,0 +1 @@
frontend/spa.html