Fix Astro.glob deprecation warnings

Replace deprecated Astro.glob with import.meta.glob in all pages:
- src/pages/index.astro: Updated homepage to use import.meta.glob
- src/pages/blog/index.astro: Updated blog listing page
- Updated package.json with separate build commands

Changes use import.meta.glob with eager loading and properly extract
slugs from file paths for routing.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Johannes Gasser
2026-01-28 17:52:36 +01:00
parent d70897a680
commit ac2d1f25e5
8 changed files with 121 additions and 7 deletions
+1
View File
@@ -0,0 +1 @@
{"DocumentConnection":{"type":"DocumentConnection","resolveType":"multiCollectionDocumentList","collections":["post","page"]},"Node":{"type":"Node","resolveType":"nodeDocument"},"DocumentNode":{"type":"DocumentNode","resolveType":"multiCollectionDocument","createDocument":"create","updateDocument":"update"},"Post":{"type":"Post","resolveType":"collectionDocument","collection":"post","createPost":"create","updatePost":"update"},"PostConnection":{"type":"PostConnection","resolveType":"collectionDocumentList","collection":"post"},"Page":{"type":"Page","resolveType":"collectionDocument","collection":"page","createPage":"create","updatePage":"update"},"PageConnection":{"type":"PageConnection","resolveType":"collectionDocumentList","collection":"page"}}