Refactor image optimization to use Astro's built-in image service and update configuration for improved performance
Some checks failed
GitHub Actions / build (18) (push) Has been cancelled
GitHub Actions / build (20) (push) Has been cancelled
GitHub Actions / build (22) (push) Has been cancelled
GitHub Actions / check (push) Has been cancelled

This commit is contained in:
becarta
2025-05-10 00:10:57 +02:00
parent 1d7883a9c7
commit b93f038071
2 changed files with 14 additions and 52 deletions

View File

@@ -118,17 +118,9 @@ export default defineConfig({
],
image: {
domains: ['cdn.pixabay.com', 'raw.githubusercontent.com'],
remotePatterns: [
{
protocol: 'https',
hostname: 'cdn.pixabay.com',
},
{
protocol: 'https',
hostname: 'raw.githubusercontent.com',
},
],
service: {
entrypoint: 'astro/assets/services/sharp',
},
},
markdown: {