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:
1 parent
d70897a680
commit
ac2d1f25e5
8 files changed
+121
-7
No files matched your search
+2
-1
@@ -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"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user