Skip to content

Commit 5cf563d

Browse files
committed
test: used a real image to test an image not on the Next.js allow list
1 parent c865a9f commit 5cf563d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cypress/integration/default/images.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('next/images', () => {
3737
// Navigating to the image itself give a forbidden error with a message explaining why.
3838
expect(response.status).to.eq(403)
3939
expect(response.body).to.include(
40-
'URL not on allowlist: https://broken-domain/netlify/next-runtime/main/next-on-netlify.png',
40+
'URL not on allowlist: https://netlify-plugin-nextjs-demo.netlify.app/next-on-netlify.png',
4141
)
4242
})
4343
})

demos/default/pages/broken-image.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Image from 'next/image'
33
// This should cause an error, because broken-domain is not part of the configured next.config.js image domains
44
const Images = () => (
55
<Image
6-
src="https://broken-domain/netlify/next-runtime/main/next-on-netlify.png"
6+
src="https://netlify-plugin-nextjs-demo.netlify.app/next-on-netlify.png"
77
alt="Picture of the author"
88
width={500}
99
height={500}

0 commit comments

Comments
 (0)