Refactor image optimization to use Astro's built-in image service and update configuration for improved performance
This commit is contained in:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user