Render unknown URLs inside the app shell and move ListeningStats to the domain types
CI/CD / BackEnd (push) Successful in 1m19s
CI/CD / WebPlayer (push) Successful in 46s
CI/CD / Deploy (push) Skipped

Add catch-all routes so unknown pages 404 inside the (app) layout and unknown
/api URLs return a JSON 404 instead of redirecting to the login page. Restore
the full root error page.
This commit is contained in:
2026-09-24 14:29:45 +02:00
parent 2d23eb87c6
commit 8e85af2b3b
6 changed files with 28 additions and 12 deletions
+9 -3
View File
@@ -1,12 +1,18 @@
<script lang="ts">
import { page } from '$app/state';
import Button from '$lib/components/ui/primitives/Button.svelte';
</script>
<div class="min-h-screen bg-bg text-fg antialiased">
<div class="mx-auto my-[14vh] max-w-prose-sm text-center">
<div class="min-h-screen bg-bg px-6 text-fg antialiased">
<div class="animate-enter mx-auto my-[14vh] max-w-prose-sm text-center">
<h1 class="mb-2.5 text-display-3">
{page.status === 404 ? 'Página no encontrada' : 'Algo salió mal'}
</h1>
<a href="/" class="text-body text-fg-2 underline">Volver al inicio</a>
<p class="mb-6.5 text-body text-fg-2">
{page.status === 404
? 'Comprueba el enlace o vuelve al inicio.'
: 'No se pudo cargar la página. Inténtalo de nuevo en unos momentos.'}
</p>
<Button href="/" variant="secondary">Volver al inicio</Button>
</div>
</div>