---
// This will redirect to the Starlight docs when they're running
// For now, let's create a placeholder docs page
export function getStaticPaths() {
  return [
    { params: { slug: undefined } },
    { params: { slug: 'getting-started' } },
    { params: { slug: 'events' } },
    { params: { slug: 'scanning' } },
    { params: { slug: 'payments' } },
    { params: { slug: 'api' } },
    { params: { slug: 'troubleshooting' } },
  ];
}

const { slug } = Astro.params;
---

<script>
  // Redirect to the Starlight docs when they're running on port 4322
  // For development, redirect to localhost:4322
  // For production, serve the built docs
  window.location.href = `http://localhost:4322${window.location.pathname.replace('/docs', '')}` || '/support';
</script>

<div>
  <p>Redirecting to documentation...</p>
  <p>If you're not redirected, <a href="/support">return to support</a></p>
</div>