@@ -80,53 +80,10 @@ Gatsby Functions or the remote image CDN.
80
80
81
81
### Gatsby Image CDN
82
82
83
- Gatsby 5 includes beta support for deferred image resizing using a CDN. This can
84
- greatly improve build times for sites with remote images, such as those that use
85
- a CMS. When using these, images do not need to be downloaded and resized at
86
- build time, and instead are built on the fly when first loaded. The image CDN is
87
- enabled by default on Netlify, but can be disabled by setting the environment
88
- variable ` GATSBY_CLOUD_IMAGE_CDN ` to ` false ` .
89
-
90
- When using the image CDN, Gatsby generates URLs of the form
91
- ` /_gatsby/image/... ` . On Netlify, these are served by a
92
- [ builder function] ( https://docs.netlify.com/configure-builds/on-demand-builders/ ) ,
93
- powered by [ sharp] ( https://sharp.pixelplumbing.com/ ) and Nuxt's
94
- [ ipx image server] ( https://github.com/unjs/ipx/ ) . It supports all image formats
95
- supported by Gatsby, including AVIF and WebP.
96
-
97
- On first load there will be a one-time delay while the image is resized, but
98
- subsequent requests will be super-fast as they are served from the cache.
99
-
100
- Currently Gatsby supports the image CDN for sites that use Contentful or
101
- WordPress, but more should be added and will be enabled automatically when
102
- available in the plugin.
103
-
104
- When using WordPress with the image CDN, we recommend disabling downloading of
105
- files if possible by setting
106
- [ ` createFileNodes ` ] ( https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-wordpress/docs/plugin-options.md#typemediaitemcreatefilenodes )
107
- to ` false ` . You should also setup an image size in WordPress to use as a
108
- placeholder. See
109
- [ the ` gatsby-source-wordpress ` docs] ( https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-wordpress/docs/plugin-options.md#typemediaitemplaceholdersizename )
110
- for more details.
111
-
112
- For example:
113
-
114
- ``` js
115
- module .exports = {
116
- plugins: [
117
- {
118
- resolve: ` gatsby-source-wordpress` ,
119
- options: {
120
- url: ' https://example.com/graphql' ,
121
- type: { MediaItem: { createFileNodes: false } },
122
- },
123
- },
124
- ],
125
- }
126
- ```
127
-
128
- For more information about Gatsby's image CDN feature, see
129
- [ the Gatsby docs] ( https://gatsby.dev/img ) .
83
+ Gatsby includes beta support for deferred image resizing using a CDN. Netlify
84
+ includes full support for Image CDN on all plans. For details on how to enable
85
+ it, see
86
+ [ the image CDN docs] ( https://github.com/netlify/netlify-plugin-gatsby/blob/main/docs/image-cdn.md ) .
130
87
131
88
### Caveats
132
89
0 commit comments