--- export async function getStaticPaths() { // Get all blog posts to create redirects const { getBlogPosts } = await import('../../utils/directus'); const posts = await getBlogPosts(); return posts .filter((post) => typeof post.slug === 'string' && post.slug.trim() !== '') .map((post) => ({ params: { slug: post.slug }, props: { slug: post.slug }, })); } const { slug } = Astro.props; ---
Redirecting to blog post...