feat: restrict debug panel to /about page only

- Add route check to only show debug panel on /about page
- Keeps debug features accessible but hidden from main experience
- Debug panel remains available in development mode on /about

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Justin Edmund 2025-07-11 20:12:23 -07:00
parent 4fd35ec1f0
commit df3a68885d

View file

@ -10,6 +10,7 @@
let { children } = $props()
const isAdminRoute = $derived($page.url.pathname.startsWith('/admin'))
const isAboutPage = $derived($page.url.pathname === '/about')
// Generate person structured data for the site
const personJsonLd = $derived(
@ -55,8 +56,10 @@
}}
/>
<!-- Debug Panel (dev only) -->
<DebugPanel />
<!-- Debug Panel (dev only, about page only) -->
{#if isAboutPage}
<DebugPanel />
{/if}
<style lang="scss">
:global(html) {