Skip to content

Commit

Permalink
refactor: Update Web.yaml to add CNAME for sd.aloen.to
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloento committed Oct 17, 2024
1 parent 96c7e1c commit 952c14f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ jobs:
publish_dir: ./dist
publish_branch: gh-pages
# cname: sd3.eco.tsi-dev.otc-service.com
cname: sd.aloen.to
33 changes: 33 additions & 0 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Redirect - OTC Status Dashboard</title>
<script type="text/javascript">
const keep = 0;
const l = window.location;

l.replace(
l.protocol +
"//" +
l.hostname +
(l.port ? ":" + l.port : "") +
l.pathname
.split("/")
.slice(0, 1 + keep)
.join("/") +
"/?/" +
l.pathname
.slice(1)
.split("/")
.slice(keep)
.join("/")
.replace(/&/g, "~and~") +
(l.search ? "&" + l.search.slice(1).replace(/&/g, "~and~") : "") +
l.hash
);
</script>
</head>

<body></body>
</html>

0 comments on commit 952c14f

Please sign in to comment.