You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Netlify Blobs is a highly-available S3-like data store optimized for frequent reads and infrequent writes. Provisioning, configuration, and access control is handled automatically. This integrated zero-configuration solution helps you focus on building business value in your project rather than toil on setting up and scaling a separate blob storage solution.
225
+
226
+
With Blobs, you can store and retrieve unstructured data extremely easily. Blobs are ubiquitous: you can access them in the build, in functions, and in edge functions.
227
+
228
+
```ts
229
+
import { getStore } from"@netlify/blobs";
230
+
231
+
exportdefaultasync (req:Request) => {
232
+
const store =getStore("ntl-workshop-todos");
233
+
234
+
if (req.method==="GET") {
235
+
const todos =awaitstore.get("todos", { type: "json" });
You may have experienced pain points in the past dealing with image optimizations for the web. Do you keep raw source images in a repo, and run them through `sharp` or `image-magick` at during the build? That would increase build time and costs significantly. Either way, you'd still need to deal with various image formats, sizing, pixel density, `srcset` attributes, etc.
259
+
260
+
With Netlify Image CDN, you can transform images on demand without impacting build times. Image CDN also handles content negotiation to use the most efficient image format for the requesting client. Optimizing the size and format of your images improves both the runtime performance and reliability of your site. Transformations are integrated natively into the CDN so that repeated requests leverage layers of caching for improved performance.
261
+
262
+
To use Netlify Image CDN, simply prefix your image URLs with `/.netlify/images?url=`:
263
+
264
+
```diff
265
+
- <img src="/owl.jpeg" />
266
+
+ <img src="/.netlify/images?url=/owl.jpeg" />
267
+
```
268
+
269
+
The next time you request that image, you'll see the format be converted on-the-fly to a more optimal compression format that your browser supports. There's no need to pre-generate images of different formats, or stuff multiple URLs in a `srcset` attribute -- it's all handled at request-time, and cached on Netlify's CDN.
270
+
271
+
You can configure many other aspects of the image, such as size, fit, position, format, and quality, by passing in [additional query parameters](https://docs.netlify.com/image-cdn/overview/#transform-images).
272
+
273
+
💡 Learn more about [Image CDN](https://docs.netlify.com/image-cdn/overview/) in our docs.
0 commit comments