Skip to content

Commit 6da5e73

Browse files
committed
[fix] 404 page for deploy
1 parent 03b9430 commit 6da5e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cp -r dist /tmp/
1616
cd /tmp/dist
1717

1818
# 404 跳转
19-
echo "<script>fetch('index.html').then(d=>document.write(d.text()))</script>" > 404.html
19+
echo "<script>fetch('index.html').then(r=>r.text()).then(d=>document.write(d))</script>" > 404.html
2020

2121
# 部署到自定义域域名
2222
# echo 'www.example.com' > CNAME

0 commit comments

Comments
 (0)