aboutsummaryrefslogtreecommitdiff
path: root/web/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/pages')
-rw-r--r--web/src/pages/index.astro3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/src/pages/index.astro b/web/src/pages/index.astro
index 8136402..f1dc6e7 100644
--- a/web/src/pages/index.astro
+++ b/web/src/pages/index.astro
@@ -28,9 +28,10 @@ import { PendingQuotes } from '../components/Quotes';
</style>
<script>
+ import { API_URL } from "astro:env/client"
document.addEventListener('DOMContentLoaded', async () => {
try {
- const version = await fetch('http://localhost:3000/api/version').then((res) => res.json());
+ const version = await fetch(`${API_URL}/api/version`).then((res) => res.json());
const versionElement = document.getElementById('version');
if (versionElement) {
versionElement.textContent = `AleeBot ${version}`;