From ae39987c7d61bc2fedd9ff1c3e1531d748efb66c Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Thu, 30 Oct 2025 09:36:53 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix:=20update=20spa.html=20handl?= =?UTF-8?q?ing=20to=20ensure=20symlink=20removal=20and=20prevent=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 2 +- api/templates/spa.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 120000 api/templates/spa.html diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 9ad74c1..fa5e420 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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 ______ diff --git a/api/templates/spa.html b/api/templates/spa.html new file mode 120000 index 0000000..d5c0904 --- /dev/null +++ b/api/templates/spa.html @@ -0,0 +1 @@ +frontend/spa.html \ No newline at end of file