diff --git a/site/astro.config.mjs b/site/astro.config.mjs index 4730def..bcd83b9 100644 --- a/site/astro.config.mjs +++ b/site/astro.config.mjs @@ -1,10 +1,8 @@ import { defineConfig } from 'astro/config' import tailwindcss from '@tailwindcss/vite' -const isGitHubPages = process.env.GITHUB_ACTIONS === 'true' - export default defineConfig({ output: 'static', - base: isGitHubPages ? '/clustri/' : '/', + base: '/', vite: { plugins: [tailwindcss()] }, }) diff --git a/site/src/components/ScreenshotTour.astro b/site/src/components/ScreenshotTour.astro index 5d5f524..d475e6d 100644 --- a/site/src/components/ScreenshotTour.astro +++ b/site/src/components/ScreenshotTour.astro @@ -1,6 +1,5 @@ --- import DotMatrixText from './DotMatrixText.astro' -const base = import.meta.env.BASE_URL ---
@@ -34,8 +33,8 @@ const base = import.meta.env.BASE_URL

Virtual Machines — 4 VMs across the cluster

-
- Clustri VM list showing running and stopped VMs +
+ Clustri VM list showing running and stopped VMs
@@ -60,11 +59,10 @@ const base = import.meta.env.BASE_URL const img = document.getElementById('tour-img') as HTMLImageElement | null const label = document.getElementById('tour-frame-label') const tabs = document.querySelectorAll('[data-tour-tab]') - const baseUrl = img?.closest('[data-base-url]')?.getAttribute('data-base-url') || '/' const sources: Record = { - vms: { src: `${baseUrl}screenshots/vms.png`, label: 'Virtual Machines — 4 VMs across the cluster', alt: 'Clustri VM list showing running and stopped VMs' }, - console: { src: `${baseUrl}screenshots/console.png`, label: 'VNC Console — web-01 (QEMU) on pve1', alt: 'Clustri console view with VNC viewer' }, - backups: { src: `${baseUrl}screenshots/backups.png`, label: 'Backups — datastores, groups and snapshots', alt: 'Clustri backups view with datastores and prune controls' }, + vms: { src: '/screenshots/vms.png', label: 'Virtual Machines — 4 VMs across the cluster', alt: 'Clustri VM list showing running and stopped VMs' }, + console: { src: '/screenshots/console.png', label: 'VNC Console — web-01 (QEMU) on pve1', alt: 'Clustri console view with VNC viewer' }, + backups: { src: '/screenshots/backups.png', label: 'Backups — datastores, groups and snapshots', alt: 'Clustri backups view with datastores and prune controls' }, } tabs.forEach((btn) => { btn.addEventListener('click', () => { diff --git a/site/src/layouts/Base.astro b/site/src/layouts/Base.astro index 3a29cf4..879c894 100644 --- a/site/src/layouts/Base.astro +++ b/site/src/layouts/Base.astro @@ -11,7 +11,7 @@ const { title = 'Clustri', description = 'A desktop client for managing Proxmox - + {title}