Rediriger /agenda/* vers /agenda pour l'éditeur visuel StoryBlok

This commit is contained in:
Jalil Arfaoui 2026-03-09 17:08:20 +01:00
parent d1df00ff4f
commit 7c631be667
2 changed files with 9 additions and 2 deletions

View file

@ -0,0 +1,7 @@
---
export function getStaticPaths() {
return [];
}
return Astro.redirect('/agenda');
---

View file

@ -1,7 +1,7 @@
--- ---
import Layout from '../layouts/Layout.astro'; import Layout from '../../layouts/Layout.astro';
import { Icon } from 'astro-icon/components'; import { Icon } from 'astro-icon/components';
import { fetchSpectacles, fetchAgenda } from '../lib/storyblok'; import { fetchSpectacles, fetchAgenda } from '../../lib/storyblok';
const [spectacles, agenda] = await Promise.all([fetchSpectacles(), fetchAgenda()]); const [spectacles, agenda] = await Promise.all([fetchSpectacles(), fetchAgenda()]);