upgrade deps to latest & migrate to astro:assets Image

- bump astro 5→6, @astrojs/mdx 4→6, astro-seo 0.8→1.1, sharp 0.33→0.35, plus minor updates
- move local images from public/ to src/assets/
- replace <img> with <Image> from astro:assets (inferSize for remote URLs)
- content schema uses image() helper for local covers
- eager-load above-the-fold images (article covers, hero avatars)
This commit is contained in:
2026-06-15 18:00:21 +03:00
parent 4192a19fe8
commit 2ff9139f73
22 changed files with 580 additions and 1006 deletions

View File

@@ -7,6 +7,14 @@ import icon from "astro-icon";
export default defineConfig({
site: "https://mariosant.dev",
integrations: [mdx(), sitemap(), icon()],
image: {
domains: [
"images.unsplash.com",
"app.ghostwriter.rocks",
"990141.apps.zdusercontent.com",
"cdn.livechat-files.com",
],
},
vite: {
plugins: [tailwindcss()],
},