fix build
Build and Deploy / build-and-deploy (push) Failing after 3h14m28s

This commit is contained in:
2026-05-03 21:17:14 +02:00
parent d9e3f398b8
commit 46f73af791
4 changed files with 3833 additions and 68 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
import BaseLayout from '../../layouts/BaseLayout.astro';
export async function getStaticPaths() {
const allPosts = await import.meta.glob('../../../content/blog/*.mdx', { eager: true });
const allPosts = import.meta.glob<{ Content: any; frontmatter: Record<string, any> }>('../../../content/blog/*.mdx', { eager: true });
return Object.entries(allPosts).map(([path, post]) => {
const slug = path.split('/').pop()?.replace('.mdx', '') || '';
@@ -13,7 +13,7 @@ export async function getStaticPaths() {
});
}
const { post } = Astro.props;
const { post } = Astro.props as { post: { Content: any; frontmatter: Record<string, any> } };
const { Content, frontmatter } = post;
---
+1 -1
View File
@@ -1,7 +1,7 @@
---
import BaseLayout from '../../layouts/BaseLayout.astro';
const allPostFiles = import.meta.glob('../../../content/blog/*.mdx', { eager: true });
const allPostFiles = import.meta.glob<{ frontmatter: Record<string, any> }>('../../../content/blog/*.mdx', { eager: true });
const allPosts = Object.entries(allPostFiles).map(([path, post]) => ({
...post,
slug: path.split('/').pop()?.replace('.mdx', '') || ''