---
---

<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Debug</title>
  </head>
  <body>
    <h1>Debug</h1>
    <ul>
      <li>Host: {Astro.request.headers.get('host')}</li>
      <li>Path: {Astro.url.pathname}</li>
      <li>Is dev: {String(import.meta.env.DEV)}</li>
    </ul>
    <h2>Headers</h2>
    <ul>
      {Array.from(Astro.request.headers.entries()).map(([k, v]) => (
        <li>{k}: {v}</li>
      ))}
    </ul>
  </body>
</html>
