Skip to content

Commit de037ca

Browse files
committed
docs: update astro.config to include image domains and replace fourth image with remote URL
1 parent 6bc3a64 commit de037ca

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

docs/astro.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ import { defineConfig } from 'astro/config'
33

44
// https://astro.build/config
55
export default defineConfig({
6-
site: 'https://astro-lqip.web.app/'
6+
site: 'https://astro-lqip.web.app/',
7+
image: {
8+
domains: ['images.pexels.com']
9+
}
710
})
-188 KB
Binary file not shown.

docs/src/pages/demos.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import Footer from '@components/Footer.astro'
99
import firstImage from '@images/pexels-fabianwiktor-3470482.jpg'
1010
import secondImage from '@images/pexels-fabianwiktor-3470872.jpg'
1111
import thirdImage from '@images/pexels-fabianwiktor-3470478.jpg'
12-
import fourthImage from '@images/pexels-fabianwiktor-994605.jpg'
1312
---
1413

1514
<Layout>
@@ -57,7 +56,7 @@ import fourthImage from '@images/pexels-fabianwiktor-994605.jpg'
5756
<div>
5857
<h3>LQIP SVG</h3>
5958
<Image
60-
src={fourthImage}
59+
src="https://images.pexels.com/photos/994605/pexels-photo-994605.jpeg"
6160
alt="A beautiful landscape with a lake and mountains 4"
6261
width={234}
6362
height={234}
@@ -101,7 +100,7 @@ import fourthImage from '@images/pexels-fabianwiktor-994605.jpg'
101100
<div>
102101
<h3>LQIP SVG size 12</h3>
103102
<Picture
104-
src={fourthImage}
103+
src="https://images.pexels.com/photos/994605/pexels-photo-994605.jpeg"
105104
alt="A beautiful landscape with a lake and mountains 8"
106105
width={234}
107106
height={234}

0 commit comments

Comments
 (0)