Improved UX for self-hosted users

This commit is contained in:
Alicia Sykes
2024-05-06 23:30:09 +01:00
parent 42d6e0394f
commit 390b8b9df7
6 changed files with 22 additions and 33 deletions

View File

@@ -1,16 +1,19 @@
---
const isBossServer = import.meta.env.BOSS_SERVER === 'true';
---
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>Astro</title>
</head>
<body>
<h1>TODO: Web Check</h1>
</body>
<html>
<head>
<title>Results</title>
<meta charset="UTF-8">
{!isBossServer && (
<meta http-equiv="refresh" content="0; url=/check" />
<script type="text/javascript">window.location.href = '/check';</script>
)}
</head>
<body>
<h1>hi</h1>
</body>
</html>