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
+2 -1
View File
@@ -4,7 +4,8 @@
"version": "0.0.1",
"scripts": {
"dev": "tinacms dev -c \"astro dev\"",
"build": "tinacms build && astro check && astro build",
"build": "astro check && astro build",
"build:tina": "tinacms build && astro check && astro build",
"preview": "astro preview",
"astro": "astro"
},