Skip to content

Commit d14ac9d

Browse files
vicbjames-elicx
andauthored
docs(cloudflare): add info about remote patterns (#161)
Co-authored-by: James Anderson <[email protected]>
1 parent 4176999 commit d14ac9d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pages/cloudflare/howtos/image.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ export default function cloudflareLoader({ src, width, quality }: ImageLoaderPro
4040
}
4141
```
4242

43+
<Callout type="warning">
44+
This simple loader does not respect [Next.js
45+
remotePatterns](https://nextjs.org/docs/pages/api-reference/components/image#remotepatterns). You should
46+
configure [the allowed source origins](https://developers.cloudflare.com/images/transform-images/sources/)
47+
in the dashboard.
48+
</Callout>
49+
4350
You will then need to update your app configuration to use this loader:
4451

4552
```ts

0 commit comments

Comments
 (0)